How can i see if dealloc is being called on a uikit object, or any object not created by myself

Posted by Gyozo Kudor on Stack Overflow See other posts from Stack Overflow or by Gyozo Kudor
Published on 2010-06-17T10:24:04Z Indexed on 2010/06/17 10:43 UTC
Read the original article Hit count: 272

I think i have an UIImage that has a higher retain count than it should have and i am probably leaking memory. I use this image as a thumbnail, to set a custom background to a uibutton. So the uibutton is holding a reference to it and so do i. But instead of 2, the retainCount is 3. Do i have to create a custom UIImage derived class and override dealloc if I want to place a log message there and then change the class used from UIImage to my class, or is there an easier way. Thanks in advance.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c