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

geiger10d

macrumors member
Original poster
Jan 31, 2011
57
0
ive looked for hours in everything imaginable to get help with sorting my table into different groups... can someone please tell me how to go about this.
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
Look at the third sample app in Apple's TableViewSuite sample code. It's called SimpleIndexedTableView.
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
The titles of the sections in that code come from the UILocalizedIndexedCollation object. If you want to have your own section titles that's fine. You still need to build a sectioned data model. If you don't want the index on the right side then the collation object probably isn't much help to you. Regardless, that code builds a sectioned data model, which you also need if you want a sectioned table view.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.