NotTooBad Blogging
iPhone development
-
Another way to create Settings views
Posted on May 4th, 2009 No commentsCraig Hockenberry has also created an API for Settings views. But unlike mySettings his API creates the views from code instead of plists. Like this:
-
- (void)constructTableGroups
-
{
-
IFTextCellController *textCell = [[[IFTextCellController alloc] initWithLabel:@"Text" andPlaceholder:@"Placeholder" atKey:@"sampleText" inModel:model] autorelease];
-
[cells addObject:textCell];
-
IFSwitchCellController *switchCell = [[[IFSwitchCellController alloc] initWithLabel:@"Switch" atKey:@”sampleSwitch” inModel:model] autorelease];
-
[cells addObject:switchCell];
-
}
Check it out at http://furbo.org/2009/04/30/matt-gallagher-deserves-a-medal/ .
Leave a reply
-



Recent Comments