我有一个带有UITableView
的viewController,我可以通过滑动来编辑(删除)其中的行,就像在邮件应用程序中一样.除此之外,我还采用了以下方法:
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
return YES;
}
然而,如果我显示了一个删除按钮,同时我使用我的UINavigationController
的反向导航,即当我popViewControllerAnimated:
时,应用程序崩溃,并显示以下消息:
[ViewController tableView:canEditRowAtIndexPath:]: message sent to deallocated instance 0xaae64d0
如何解决这个问题?