i have implemented the functionality to make delete button visible on swap and it also delets the cell by clicking on the button. but i just want to change the text of delete button from "DELETE" to "CANCEL"
Implement the following in your UITableViewDelegate
:
- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath {
return @"Cancel";
}
You can use the UITableViewDelegate protocol method:
tableView:titleForDeleteConfirmationButtonForRowAtIndexPath:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With