1. drag imageview to layout screen

2. select attribute inspector and chose image (right top layout)

3. ctrl+drag & drop imageview to Editor (FirstViewController.h

)

4. drag button to Editor and chose Action

5. coding bellow

- (IBAction)mybutton:(id)sender {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://google.co.th"]];
}

 


หารทำ navigation

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.