In a iPhone application, I am using two different tableviews in same screen. Now, I want to use the swipe-delete functionality in one table view but not in the other. But when I call the delegate method ‘commiteditingstyledelete’ to get the swipe-delete button in both the table view. How to remove that from the other table ? I can not disable the row user-interaction as I have some textfield in tableview row. Please suggest.
In a iPhone application, I am using two different tableviews in same screen. Now,
Share
In your delegate callback for editing cells, you have to check what table you want to use, you can set a tag to each tableView, or you’re using ivars check for the instance, so:
1: with ivars
2: with tag
…then in the callback
EDIT:
you also have to check set style of the cell in this callback: