when/where should properties be released once the objects is pushed for display?

Posted by Tzur Gazit on Stack Overflow See other posts from Stack Overflow or by Tzur Gazit
Published on 2010-03-21T18:47:29Z Indexed on 2010/03/21 18:51 UTC
Read the original article Hit count: 314

Filed under:
|
|

Hi,

I've defined a view controller with an array as one of its properties, and set the array with an allocated and autoreleased array. After I push the view for display I release it.

By watching the leaks tool I see that every time that I pop the view I suffer from leakage. I tried to release the properties explicitly, immediately after the push but the app crashes.

looking forward for your suggestions.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview