Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

titaniumdecoy

macrumors member
Original poster
When using the iPhone UITableView in Indexed (not Grouped) mode, how do you add separators (the gray bars with white text)? Thanks.
 
Those are section headers. There should be a UITableViewDatasource method that allows you to declare those.

HTH,

Dave
 
1) Open XCode
2) Open the Documentation via Help->Documentation
3) Type UITableViewDatasource into the search
4) Read the documentation for UITableViewDatasource, in particular the numberOfSectionsInTableView: and tableView:titleForHeaderInSection: methods.
 
1) Open XCode
2) Open the Documentation via Help->Documentation
3) Type UITableViewDatasource into the search
4) Read the documentation for UITableViewDatasource, in particular the numberOfSectionsInTableView: and tableView:titleForHeaderInSection: methods.

robbie, your instructions don't get him the results he wants.

5) Apply new knowledge to current task and get the job done.

(Sorry... guess that might be taken as spam now that I think about it... just waiting for someone to answer my question and seeing if I can help anyone else in the mean time...)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.