-[xxxViewController scrollViewDidScroll:]: message sent to deallocated instance 0x7fc04
来源:互联网 发布:git 64位 windows下载 编辑:程序博客网 时间:2024/05/16 02:38
当在Controller中实现
-(void)scrollViewDidScroll:(UIScrollView *)scrollView
滑动tableView ,点击back按钮
[self.navigationControllerpopViewControllerAnimated:YES];
app Crash .
因为一个UIViewController释放后,又向这个VC发送了某些请求导致。当VC释放后,这个xx还没有被释放,所以xx的回调方法还在调用delegate即这里的vc, 所以崩溃就发生了。
解决方法:在dealloc方法中给代理赋值nil
- (void)dealloc
{
self.tableView.delegate =nil;
}
0 0
- -[xxxViewController scrollViewDidScroll:]: message sent to deallocated instance 0x7fc04
- ios -[MTMeViewController scrollViewDidScroll:]: message sent to deallocated instance 0x7fc0f6f2
- [****ViewController scrollViewDidScroll:]: message sent to deallocated instance 0x12d6c22f0
- iOS [MTMeViewController scrollViewDidScroll:]: message sent to deallocated instance
- 关于scrolleView 的[MTMeViewController scrollViewDidScroll:]: message sent to deallocated instance 0x7fc
- message sent to deallocated instance 0x100202dc0
- message sent to deallocated instance 0x154eec600
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- 平均速度最快的排序算法是?----阿里巴巴2015实习生笔试题
- 关于绕过上传验证的一些简单方法
- Receive packet steering patch详解
- 记录显示及隐藏状态栏
- SwipeRefreshLayout嵌套Listview冲突解决
- -[xxxViewController scrollViewDidScroll:]: message sent to deallocated instance 0x7fc04
- dubbo 的monitor监控中心 配置过程
- 连接数据库的SID错误的解决方法
- 层层叠叠,用好z-index
- ThinkPHP3.2.3 - 绑定默认应用目录,并自动创建
- centos6.x下nginx自启动脚本
- Dubbo整合Zookeeper和Spring示例程序
- Robot Framework + appium库 增加元素是否存在关键字
- 软件测试&软件测试工程师