UIImage view questions?

To change the image itself, you can write: UIImage* myNewImage = ...; myImageView. Image = myNewImage To change the background of your UIImageView, you can write: myImageView. BackgroundColor = UIColor redColor or whatever other UIColor you would like, including another image used as a pattern.

To change the image itself, you can write: UIImage* myNewImage = ...; myImageView. Image = myNewImage; To change the background of your UIImageView, you can write: myImageView. BackgroundColor = UIColor redColor; ... or whatever other UIColor you would like, including another image used as a pattern.

I couldnt figure out where to put those without error! I posted my code above! Could you please locate where for me?

– jackson Nov 6 '09 at 2:17 You would put the code in the body of the method where you want to set the image and/or background color of the view. – Peter Hosey Nov 6 '09 at 2:48 This Worked! Thanks!

– jackson Nov 10 '09 at 3:00.

If you implement the viewDidLoad() method in your view controller class you can set the image in the view there. When this method is automatically invoked all of your IBOutlets will be initialized already allowing you to set myImageView.image. See viewDidLoad.

I have a UIImageview in my application and I was wondering how I can show an image in it pragmatically and change it whenever I want to! I think my major problem is exactly WHERE to put it! If you could show me what code and where that would be very usefull!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions