美文网首页
UITableViewCell 显示左滑的删除按钮 showin

UITableViewCell 显示左滑的删除按钮 showin

作者: 浪哇 | 来源:发表于2017-06-13 18:50 被阅读0次

一、代码实现显示: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@"删除";

}

相关文章

网友评论

      本文标题:UITableViewCell 显示左滑的删除按钮 showin

      本文链接:https://www.haomeiwen.com/subject/xtfwfxtx.html