views:

202

answers:

2

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?

+4  A: 

If myImageView is your outlet, then in code, you can use:

myImageView.image = [UIImage imageNamed: @"myNewImage.png"];
Ben Gottlieb
Thank you very muchthis is exactly what i was looking forthis works 100%.
Pavan
A: 

Thanks Ben Gottieb, this had me stumped for too long.

David van Dugteren