Sectioned Table View Help!!

Discussion in 'iOS Programming' started by geiger10d, Feb 12, 2011.

  1. geiger10d macrumors member

    Joined:
    Jan 31, 2011
    #1
    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.
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    Look at the third sample app in Apple's TableViewSuite sample code. It's called SimpleIndexedTableView.
     
  3. geiger10d thread starter macrumors member

    Joined:
    Jan 31, 2011
    #3
    ive looked at that, theres no line in the code that defines what each section is called.
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
  5. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #5
    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.
     

Share This Page