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

GVKoenig

macrumors newbie
Original poster
Aug 6, 2010
3
0
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.

Cheers!
 
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.

Cheers!

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.