当表格视图进入编辑模式时,它会在左侧显示删除控件,并在右侧显示重新排序控件。
UITableViewCellEditingStyleNone -(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath .
UITableViewCellEditingStyleNone
-(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
但这样做只会隐藏红色的delete控件。当我进入编辑模式时,表格行仍将缩进。是否可以完全隐藏删除控件?
您还需要返回NO for â tableView:shouldIndentWhileEditingRowAtIndexPath: .