现在的位置: 首页 > 综合 > 正文

UITableview 去除滑动删除 编辑状态删除

2017年12月28日 ⁄ 综合 ⁄ 共 241字 ⁄ 字号 评论关闭

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath
*)indexPath

{

   
if
(!tableView.editing)

       return
UITableViewCellEditingStyleNone;

   
else
{

       return
UITableViewCellEditingStyleDelete;

    }

    

}

抱歉!评论已关闭.