日志出现NSKeyValueObservance错误.怎样解决
答案:1 悬赏:70 手机版
解决时间 2021-01-27 14:44
- 提问者网友:感性作祟
- 2021-01-26 17:18
日志出现NSKeyValueObservance错误.怎样解决
最佳答案
- 五星知识达人网友:封刀令
- 2021-01-26 18:39
您好,很高兴为您解答。
如果错误代码如下显示:
2014-01-04 10:40:06.776 HZXS_IPHONE_BETA[2806:60b] Display View. 2014-01-04 10:40:21.168 HZXS_IPHONE_BETA[2806:60b] An instance 0x17b57000 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. Here's the current observation info: ( Context: 0x0, Property: 0x176a1530> )
意思大概是:uitableview注册了观察者,然后没有被注销掉,又开始重复使用。
由于继承的那个上拉刷新的那个uitableview,没有被注销,可尝试在-(void)dealloc 这里注销看下
如果错误代码如下显示:
2014-01-04 10:40:06.776 HZXS_IPHONE_BETA[2806:60b] Display View. 2014-01-04 10:40:21.168 HZXS_IPHONE_BETA[2806:60b] An instance 0x17b57000 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. Here's the current observation info:
意思大概是:uitableview注册了观察者,然后没有被注销掉,又开始重复使用。
由于继承的那个上拉刷新的那个uitableview,没有被注销,可尝试在-(void)dealloc 这里注销看下
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯