我有一个包含七个部分的普通 TableView。否则我有一个 prepareForSegue 方法。一切运行良好。但是当我在 viewDidLoad 中设置编辑模式时
[self.tableView setEditing:YES animated:YES];
我的 prepareForSegue 方法不再起作用。
对于编辑我已经实现了这些方法
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath;
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath;
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath;
希望你能帮助我。谢谢。