码迷,mamicode.com
首页 > 其他好文 > 详细

An instance 0x172b8600 of class UITableView was deallocated while key value

时间:2014-11-27 12:15:56      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:style   blog   io   color   使用   sp   on   div   log   

从带有tableview并且使用Mj下拉刷新的视图调用popViewControllerAnimated的时候,控制台打印这个:
An instance 0x15d7aa00 of class UITableView was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Heres the current observation info:
<NSKeyValueObservationInfo 0x16835900> (
<NSKeyValueObservance 0x16835a40: Observer: 0x16834ed0, Key path: contentOffset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x15748160>
)

解决办法:

- ( void )dealloc{

  [ _header free ];

  [ _footer free ];

}

 

 

An instance 0x172b8600 of class UITableView was deallocated while key value

标签:style   blog   io   color   使用   sp   on   div   log   

原文地址:http://www.cnblogs.com/hw140430/p/4125808.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!