i have implemented the functionality to make delete button visible on swap and it also delets the cell by clicking开发者_如何学Python 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:
精彩评论