PDA

View Full Version : iPhone table view question




titaniumdecoy
Aug 25, 2008, 08:06 PM
When using the iPhone UITableView in Indexed (not Grouped) mode, how do you add separators (the gray bars with white text)? Thanks.



davedelong
Aug 25, 2008, 08:08 PM
Those are section headers. There should be a UITableViewDatasource method that allows you to declare those.

HTH,

Dave

robbieduncan
Aug 26, 2008, 12:41 PM
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.

ArtOfWarfare
Aug 26, 2008, 01:09 PM
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...)