Hello,
I am trying to follow Apple's guide to adding a row to a table view (http://developer.apple.com/iPhone/library/documentation/UserExperience/Conceptual/TableView_iPhone/ManageInsertDeleteRow/ManageInsertDeleteRow.html ) but I dont quite get it.
I have gotten the edit button to work for deleting a row. One would think that the add button would work the same way, but the guide does it totally differently (and I've had no luck with it.)
Adding an edit button looks like this:
So I thought would try
or
but that doesnt compile.
So before I ask my questions about the "other way" of adding in insert button, am I right in thinking that it must be done with a much different technique?
Phil
I am trying to follow Apple's guide to adding a row to a table view (http://developer.apple.com/iPhone/library/documentation/UserExperience/Conceptual/TableView_iPhone/ManageInsertDeleteRow/ManageInsertDeleteRow.html ) but I dont quite get it.
I have gotten the edit button to work for deleting a row. One would think that the add button would work the same way, but the guide does it totally differently (and I've had no luck with it.)
Adding an edit button looks like this:
Code:
self.navigationItem.leftBarButtonItem = self.editButtonItem;
Code:
self.navigationItem.rightBarButtonItem = self.addButtonItem;
Code:
self.navigationItem.rightBarButtonItem = self.insertButtonItem;
So before I ask my questions about the "other way" of adding in insert button, am I right in thinking that it must be done with a much different technique?
Phil