Clearing an image from an imageview
OK, I have got my code down to this:
[self setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%@.png",imagePath]]];
Now, what do I need to do to make sure this image is not kept in memory ? Do I need to call anything when I change the image, or will the control release the old image when it loads the new one ? What about when I want to clear the image altogether and release the memory that contains it ( which would occur when I go back to my table view to select another image ).
|