I have a UIViewController class, with a tableView. In viewDidLoad:
UIBarButtonItem *editIcon = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButton
It's because you're only setting the style of the button (not its text) when you switch modes. You need to do this (or equivalent):
-(void)toggleEditMode{ self.navigationItem.rightBarButtonItem.title = self.tableView.editing ? @"Done" : @"Edit";