March 2014
Intermediate to advanced
672 pages
40h 11m
English
There’s nothing special involved in terms of laying out a new UITableViewController for a preferences table. You allocate it. You initialize it with the grouped table style. That’s pretty much the end of it. It’s the data source and delegate methods that provide the challenge. Here are the methods you need to define:
numberOfSectionsInTableView:—All preferences tables contain groups of items. Each group is visually contained in an edge-to-edge white background, contrasting with the gray background of the containing table. Return the number of groups you’ll be defining as an integer.
tableView:titleForHeaderInSection: ...
Read now
Unlock full access