uibutton - Change image of UIImageView on button click in iPhone program -
I want to change the image in the image viewer when I click a button I know the basic question, but for this I need an answer. Please answer
First of all, implement the following method in a MyViewController.m (also, MyViewController Add method signature to .h file):
MyViewController.m:
- HandBlow link: (ID) sender {imageView.image = [UIImage imageNamed: @ "Blah.png"]; }
MyViewController.h:
{IBOutlet UIImageView * imageView; } - (IBAction) handleButtonClick: (ID) sender;
>
/ html>
Comments
Post a Comment