You can register delegates that are called by the Extensibility Framework before and after tile creation.
-(MAFTile*) willCreateTileWithId:(NSString*)tileID_in andContext:(MAFExtContext*)context_in; -(void) didCreateTile:(MAFTile*)tile_in;
// AppDelegate.h #import "MAFTileCreatorDelegate.h" @interface AppDelegate : UIResponder <UIApplicationDelegate, MAFTileCreatorDelegate>
// AppDelegate.m // skipping the usual AppDelegate code for brevity #pragma mark - MAFTileCreatorDelegate Delegates /** * The app delegate shall implement this method in the App Delegate in order to build custom tiles for specific identifiers. * @return nil if the client does not intend to create the tile for a given ID */ -(MAFTile*) willCreateTileWithId:(NSString*) tileID_in andContext:(MAFExtContext*) context_in { MAFTile* tile = nil; if ([tileID_in isEqualToString:@"LoginScreen "]) { // create the Tile and all it’s subviews programmatically tile = [[[CustomLoginScreenMAFTile alloc] init] autorelease]; } return tile; }
/** * The app delegate shall implement this method in the App Delegate in order to decorate configuration based tiles for specific identifiers. */ -(void) didCreateTile:(MAFTile*)tile_in { // access and modify tile contents }