首页 > 其他 > 详细

[numberOfSectionsInTableView:]: message sent to deallocated instance 0x17c8bc00

时间:2015-03-25 09:00:48      阅读:232      评论:0      收藏:0      [点我收藏+]

困扰了很久的问题终于寻觅到解决方案,在此共享下。

字面意思就是消息发送给已经释放的对象。

解决方案  在你popToRootViewController之前 将

         _tableView.dataSouce = nil; 

                                                                            

         _tableView.delegate = nil;



如果是其他代理方法报类似错误,也需要将dataSource 和delegate设置为nil就好了

[numberOfSectionsInTableView:]: message sent to deallocated instance 0x17c8bc00

原文:http://blog.csdn.net/liuxu0718/article/details/44609543

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!