一、代码实现显示:KVC: [cell setValue:[NSNumbernumberWithBool:YES]forKey:@"showingDeleteConfirmation"];
二、左滑实现显示:
- (void)tableView:(UITableView*)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath*)indexPath {
}
修改:button标题
-(NSString*)tableView:(UITableView*)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath*)indexPath
{
return@"删除";
}