the book I’m studying to program for iPhone says I can have a mixture of both UITableViewCellEditingStyle-Insert/Delete at the same time. But I couldn’t figure out how to do it.There’s a UITableViewdataSource method return type of which is UITableViewCellEditingStyle.But how do I return both style simultanously if I can return just one thing-either insert or delete.
Share
If I’m understanding correctly, you want to update your tableview by both deleting and adding a new cell (and optionally animating that change).You need to nest your calls inside a beginUpdates block:
You need to make sure that your UITableViewDataSourceDelegate methods reflect that change when
commitUpdates:gets called.