Programmatically change the UIImageView displaying image1 to image2
cocoa-touch, iphone, objective-c, uiimageview, uikit
Solution
If myImageView is your outlet, then in code, you can use:
myImageView.image = [UIImage imageNamed: @"myNewImage.png"];
Problem
The UIImageView is placed in interface builder. I already created an IBOutlet. How do i programmatically change the UIImageView to view another image. Can someone please help me?