title: create a UIWebView and load a website programmatically
body: <p>The following is my code. I simply want to load a website page and put a back button on screen. Don't know why nothing shows on the screen.</p>
  
  <p>in .h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  @interface ThirdViewController : UIViewController
  {
      UIWebView *myWebView;
  }
  @property (nonatomic, retain) UIWebView *myWebView;
  -(IBAction)goBack:(id)sender;
  @end
  </code></pre>
  
  <p>in .m</p>
  
  <pre><code>#import "ThirdViewController.h"
  @implementation ThirdViewController
  @synthesize myWebView;
  -(IBAction)goBack:(id)sender
  {
      [myWebView goBack];
  }
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
  
      NSString *urlAddress = @"http://www.apple.com";
      NSURL *url = [NSURL URLWithString:urlAddress];
      NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
      [myWebView loadRequest:requestObj];
      [self.view addSubview:myWebView];
  
      self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]     initWithTitle:@"Back"                                                                              style:UIBarButtonItemStylePlain                                                                         target:self action:@selector(goBack:)];
  }
  </code></pre>