I’m trying to implement a TableView inside a UIView in Storyboard.
This is what I’ve achieved:

Now I want that the Edit button, if pressed, prepare table rows for deletion.
I put the Edit button on the Bar wit the following:
//add edit button
[buttons addObject:self.editButtonItem];
Moreover I’ve set the tableview delegate and datasource to the main view and events are fired. But how can I tell to the edit button that the rows of the table must be deletable?
Thank you in advance,
yassa
There is this delegate tabelView method:
Added code for the Edit buttton when pressed. Rename “toggleEdit” to whatever to fit your needed.