Noob Alert,
I am trying to change an image in a UIImageView.
popCard is the IBOutlet pointed to the UIImageView - which is blank in IB.
there are 5 possible images (Graphic0, Graphic1, etc.)
For some reason it keeps displaying Graphic1.
I got a feeling I'm missing something simple. Can you help please?
This what i am using:
getCard=0;
NSLog(@"begin showCard = %i",getCard);
FlowCoverAppDelegate *mainDelegate = (FlowCoverAppDelegate *)[[UIApplication sharedApplication]delegate];
getCard = mainDelegate.showCard;
NSLog(@"showCard = %i",getCard);
if (getCard = 0) {
[popCard setImage:[UIImage imageNamed:@"Graphic0.jpg"]];
popCard.contentMode = UIViewContentModeScaleAspectFit;
return;
}
Cheers Paul