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
Strange as it may seem, retainCount
is not useful at all for counting your retains. Things get retained for other reasons than you calling [myObject retain]
or [[MyClass alloc] init]
etc.
It's better to ignore retainCount
and learn the memory management rules. retainCount
will make you more confused. If you're developing only for iOS 5, it's better to forget about memory management and use ARC.