If Editing mode is enabled for the tableview it shows a button titled Edit, when pressing it it changes the title to done
i was wondering if there is a way to change the
You can change the title of the edit button like this:-
- (void)setEditing:(BOOL)editing animated:(BOOL)animated
{
// Make sure you call super first
[super setEditing:editing animated:animated];
if (editing)
{
self.editButtonItem.title = NSLocalizedString(@"Cancel", @"Cancel");
}
else
{
self.editButtonItem.title = NSLocalizedString(@"Edit", @"Edit");
}
}
its working like edit:-
TO