Walter West
Walter West

Reputation: 859

How to add my action to standard edit tableView button iOS

I have UITableViewController with navigation bar. In viewDidLoad I added edit button:

 self.navigationItem.rightBarButtonItem = self.editButtonItem()

How can I show dialog before edit mode enabled? In what place can I do it?

Upvotes: 1

Views: 563

Answers (1)

Krishna
Krishna

Reputation: 780

you can use the method - (void)setEditing:(BOOL)editing animated:(BOOL)animated This method will be called when you click on edit button. Now you can put your functionality inside this method.

Upvotes: 1

Related Questions