Adding a new section to the UITableview

Discussion in 'iOS Programming' started by Samppaa, May 29, 2010.

  1. Samppaa macrumors regular

    Joined:
    Mar 26, 2010
    #1
    Hey I have been wondering how to add a section to the my UITableView I got a table view inside my view and got it as reference inside my view controller, but what function I have to use and can some one make example if I want to add section called "Important things" to a tableview? I am making note program where people can add new sections. Sorry this all looks so hard, but I think I have progressed pretty good. Also sorry I am so noob, but all the answers I found from google was damn confusing.
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Implement the documented methods on the datasource. The ones with section in the name (there are a few) are the ones you need to look at.
     
  3. Samppaa thread starter macrumors regular

    Joined:
    Mar 26, 2010
    #3
    Help

    Do I need to like make a table controlled as I tried to make a table controller and link the tableview to it, compiler showed 2 errors... I just want to add a section not load the data from any source :(
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    You must have data from somewhere. Otherwise what are the cells showing?
     

Share This Page