5

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?

1 Answer 1

9

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

myImageView.image = [UIImage imageNamed: @"myNewImage.png"];
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you very much this is exactly what i was looking for this works 100%.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.