Does this have to be released?

Posted by NextRev on Stack Overflow See other posts from Stack Overflow or by NextRev
Published on 2010-03-18T20:37:50Z Indexed on 2010/03/18 20:41 UTC
Read the original article Hit count: 289

Filed under:
|
|
|
|

I've done a lot of research on when it's correct to release things, but it's all confusing to me. I think sometimes the Leaks program is off. Anyway...

background is a UIImageView

background.image = [UIImage imageNamed:@"greenbackground.png"];

Do I have to release background? I never alloced it and it's not set as a property, so I'm thinking no.

© Stack Overflow or respective owner

Related posts about memory

Related posts about iphone