tableView:canEditRowAtIndexPath: crash when popping viewController
来源:互联网 发布:网络配线架说明书 编辑:程序博客网 时间:2024/05/17 22:12
在viewController里面有一个TableView,tableView的Delegate方法里
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { return YES;}
而每次一拉出Cell的删除按钮的时候POP,程序必定闪退!这让人很蛋疼,错误如下-[对象名 tableView:canEditRowAtIndexPath:]: message sent to deallocated instance 0x1770e430
后来在overflow上找到了解决办法:
- (void)viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated]; [table setEditing:NO];}
但是不知道为什么!!!有同学知道为什么吗?!!! 0 0
- tableView:canEditRowAtIndexPath: crash when popping viewController
- tableView:canEditRowAtIndexPath: crash when popping viewController
- tableView:canEditRowAtIndexPath:]: message sent to deallocated instance
- tableView Crash
- *** -[AlwayedDownVC tableView:canEditRowAtIndexPath:]: message sent to deallocated instance 0x17a971
- tableView滑动删除返回错误 [ tableView:canEditRowAtIndexPath:]:message sent to deallocated instance
- tableView滑动删除返回错误 [ tableView:canEditRowAtIndexPath:]:message sent to deallocated instance 0x10930c1
- 普通viewController绘制tableview tableviewcell
- when viewController is an container
- tableviewcell 侧滑删除 点击返回按钮 程序崩溃 [ tableView:canEditRowAtIndexPath:]:message sent to deallocated insta
- CB-9685 A fix for the magnifying glass popping up on iOS9 when longpr
- VS2008 crash when updating IntelliSense
- crash when select fault section
- 分离tableview的datasource , 实现ViewController “瘦身”
- ViewController 加 tableView 调用 scrollViewDidScroll 方法
- swift:ViewController中自定义tableView简单入门
- iOS DataSource从tableview分离 简化viewController
- 向上滑动tableview 程序crash问题
- C/C++必看书籍
- Windows和Linux之间实现资源共享——Samba服务器
- 关于java的总结,和知识框架
- PPPOE、Web+Portal、802.1x常见三种认证方式对比
- web服务器性能对比
- tableView:canEditRowAtIndexPath: crash when popping viewController
- vs使用任务快捷键
- 指针函数用法,参考u-boot1.1.6
- iOS 获取文件的目录路径的几种方法
- 路由器修改密码不懂的可以参考
- C程序设计week10作业
- CXF-使用interceptor处理Soap Headers
- iOS文件系统的管理
- Ubuntu 14.04 Android 使用Maven一 使用例子工程