iPhone table view question

Discussion in 'iPhone/iPad Programming' started by titaniumdecoy, Aug 25, 2008.

  1. macrumors member

    Joined:
    Oct 13, 2005
    #1
    When using the iPhone UITableView in Indexed (not Grouped) mode, how do you add separators (the gray bars with white text)? Thanks.
     
  2. macrumors member

    davedelong

    Joined:
    Sep 9, 2007
    Location:
    Right here.
    #2
    Those are section headers. There should be a UITableViewDatasource method that allows you to declare those.

    HTH,

    Dave
     
  3. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    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.
     
  4. macrumors 603

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #4
    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...)
     

Share This Page