xcode myapp6

Screen Shot 2556-07-08 at 2.17.02 PM

when you press bottom page will change to google.com page

//  FirstViewController.m
//  myapp6
//
//  Created by Guest User on 7/8/56 BE.
//  Copyright (c) 2556 Petcharaporn. All rights reserved.
//
#import "FirstViewController.h"
@interface FirstViewController ()
@end
@implementation FirstViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
self.title = NSLocalizedString(@"First", @"First");
self.tabBarItem.image = [UIImage imageNamed:@"first"];
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)mybotton:(id)sender {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://www.google.com"]];
}
@end

-----------------------------------------------------------------------

//
//  FirstViewController.h
//  myapp6
//
//  Created by Guest User on 7/8/56 BE.
//  Copyright (c) 2556 Petcharaporn. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface FirstViewController : UIViewController
- (IBAction)mybotton:(id)sender;
@end
-----------------------------------------------------------------------

Screen Shot 2556-07-08 at 2.18.53 PM