Hi,
I am trying to make a button in my IPhone app which changes an existing image (simple, I know! but I've spent 2 days on this :)
I have a button:
- (IBAction)myButton {
myUIImageView.image = [UIImage imageNamed:@"image.jpg"];
NSLog(@"my button");
}
I am attempting to find out why the button is not doing anything. "my button" does get logged to the console so I know its mapped correctly. Firstly, I was hoping someone could tell me if I could perhaps log some more important info here, like the image file path? Or perhaps you see why this isn't working.
I synthesize myUIImageView above this:
@synthesize myUIImageView;
And I declare it in my .h file:
- (IBAction)myButton;
@property(retain, nonatomic) IBOutlet UIImageView* myUIImageView;