I set my viewController to use the edit button in the way Apple recommends:
self.navigationItem.rightBarButtonItem = self.editButtonItem;
When the user clicks the edit button, this triggers the setEditing:animated: method. In this method, I add or remove a "new line" depending on the value of editing (i.e., a line that the user can click to add a new item).
When the user iterates over a cell (until it is in edit mode), it also calls setEditing:animated: which leads to the fact that my code incorrectly adds this "new line". It should show this new line only if the entire viewController is in edit mode (i.e. when you click the edit button).
How can I solve this problem?
iphone uitableview
Senseful
source share