views:

41

answers:

2

I need to set an image view to display an image here.

else if (n == 2) {
    gamestatus.text = @"The Card is A Two.";
    // I Need to set my imageview to a picture here.
}
A: 

use yourimageview.view

akam
how would I specify what image i want my image view to change to
Roland Taracks
-1: this is incorrect. to set the image of an UIImageView use imageView.image property
Jesse Naugher
+4  A: 
UIImageView *imageView = [[UIImageView alloc] initWithImage:myImageHere];

or if the imageView is already declared...

myImageView.image = myImageHere;

Edit: to answer the question about how to set to an image.

a simple way (some would argue its slightly inefficient),

myImageView.image = [UIImage imageNamed:@"my Example Image.png"];
Jesse Naugher