zanque zanque - 5 months ago 13
iOS Question

How to change iPhone UITableView delete button title while editing it

I need to change the title of the default delete button that appears when I attempt to delete a row from a

UITableView
after setting editing to
YES
.

Answer

You can change it in UITableView delegate method

- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath