Following code is creating memory leak:
UIImage * img1 = [UIImage imageNamed:@"myimage.png"];
I have to replace existing image with new image.
What could be the possible solution?
In my application i crated 4 UIImageview in .xib file and then hide and displayed the image using following code:
myButton.hidden=YES; //for hiding
myButton.hidden=NO; //for displaying