UITableViewCell 显示左滑的删除按钮 showin

2017-06-13  本文已影响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@"删除";

}

上一篇 下一篇

猜你喜欢

热点阅读