Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 6, 2010, 08:13 PM   #1
GVKoenig
macrumors newbie
 
Join Date: Aug 2010
Sample code for add button for tableView

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!
GVKoenig is offline   0 Reply With Quote
Old Aug 6, 2010, 10:25 PM   #2
pflau
macrumors 6502
 
Join Date: Sep 2007
Quote:
Originally Posted by GVKoenig View Post
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.
pflau is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Looking for sample code/projects Lord Hamsa Mac Programming 3 Apr 25, 2014 01:08 PM
Error Code when clicking Button Gamrpro iPhone/iPad Programming 4 Nov 28, 2013 03:06 PM
XCode: Won't let me add more than 1 button stephanie4992 iPhone/iPad Programming 2 Sep 5, 2013 03:01 PM
Apple Sample Code XML nashyo iPhone/iPad Programming 0 May 31, 2012 06:46 AM

Forum Jump

All times are GMT -5. The time now is 02:59 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC