Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想这样做,当用户在一个单元格上滑动时,删除按钮不会只显示在第一个单元格中,而是启用其他单元格
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.row == 0) { return NO; } else { return YES; } }
在您实现了 tableview 委托和数据源的地方实现这一点。