How do I enable the built in behavior to add rows?


#1

Just for practice I wanted to see if I could enable the built-in behavior for adding a row that displays a green plus icon, but I cannot find what I need in the API Docs to make this happen. I thought I should change the editingStyle property, but that’s read only.

I got started on this experiment, because the chapter project has …

and I wanted to try to understand when tableView:commitEditingStyle:forRowAtIndex: might get a editingStyle different from UI…Delete

Thanks for any help!


#2

Found what I needed.

tableView:editingStyleForRowAtIndexPath:

And also this should have been in 10. Sorry. My version of the book has this as chapter 9.

Thanks!