Overriding existing UITableViewDelegate methods.
Goal - C
-(NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath {
return @"Trash";
}
Swift
func tableView(tableView: UITableView, titleForDeleteConfirmationButtonForRowAtIndexPath indexPath:NSIndexPath) -> String
{
return "Trash";
}
Hope this help helps you.
source
share