Iphone memory management
1.UIImageView * img1 = [[UIImageView alloc] initwithImage: [UIImage imageNamed: @ "1.png"]];
2.UIImageView * img2 = [[UIImageView alloc] initwithImage: [UIImage imageNamed: @ "2.png"]];
a) img1.image = [UIImage imageNamed: @ "2.png"];
b) [img1 setImage:img2];
in which direction is the smallest memory used among a and b? why?
if i need to do this multiple times how do you suggest?
-1
a source to share