Sample code for add button for tableView

Discussion in 'iOS Programming' started by GVKoenig, Aug 6, 2010.

  1. GVKoenig macrumors newbie

    Aug 6, 2010
    Hello to all,

    I am looking for some sample code to show how to implement an 'Add' button
    for a tableView. What I want is to be able to add rows to a table by using the 'Add' button.

    I have looked through the sample code on Tables at the Apple Dev Center site but cannot seem to find anything pertaining to what i need. If anyone can direct me to a site with sample code that would be great.

  2. pflau macrumors 6502

    Sep 17, 2007
    Why don't you do it in Interface Builder? Attach an event to the button (touch up inside) that would update the data model and call reloadData on the table view controller.

Share This Page