user836026
user836026

Reputation: 11350

Adding an "Edit Button" to the top of UITableController "at later stage"

I've discovered at later stage that I need to add an "Edit button" to the top of UITableController view. what is the best way. if possible I don't want to do lots of changes to my application because it's almost done.

Upvotes: 1

Views: 221

Answers (1)

MobileOverlord
MobileOverlord

Reputation: 4610

You can add a UIBarButtonItem to your navigation bar and invoke the editing mode of the table view in the action.

- (IBAction) edit:(id)sender {
        [self.tableView setEditing:YES animated:YES];
}

Upvotes: 1

Related Questions