Memory need to be release for alloc, retain and copy. My question is for following situation where I retain the UIImage property, but it was autorelease by the function of imagedNamed. Should I still release following variable?
@property (nonatomic, retain) UIImage *image;
self.image = [UIImage imageNamed:@"image.png"];
Thanks!
Yes you have to release image since you retained it.