My retainCount is increasing?

后端 未结 4 1419
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-04 22:18

am trying here to build rss reader , the problem that when user finish read artical and press back the dealloc don\'t called

and i got retainCount 6 & some times 7

4条回答
  •  滥情空心
    2021-02-04 23:13

    NSThread detachNewThreadSelector:toTarget:withObject: retains its target, which in this case is self. Also, self is the delegate of a few things here, usually you don't want to retain delegates so if you've written those protocols check that you are not doing that.

提交回复
热议问题