title: Objective-C UIWebView not loading website
body: <p>I am trying to get a UIWebView to display google.com for now, but its not loading:</p>
  
  <p>I just get a blank screen</p>
  
  <p>.h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface ViewController : UIViewController
  
  @property (strong, nonatomic) IBOutlet UIWebView *webView;
  
  @end
  </code></pre>
  
  <p>.m</p>
  
  <pre><code>#import "ViewController.h"
  
  @interface ViewController ()
  
  @end
  
  @implementation ViewController
  
  - (void)viewDidLoad {
  
      [super viewDidLoad];
  
      NSURL *targetURL = [NSURL URLWithString:@"http://www.google.com"];
      NSURLRequest *request = [NSURLRequest requestWithURL:targetURL];
      [_webView loadRequest:request];
  
      // Do any additional setup after loading the view, typically from a nib.
  }
  
  
  
  - (void)didReceiveMemoryWarning {
      [super didReceiveMemoryWarning];
      // Dispose of any resources that can be recreated.
  }
  
  @end
  </code></pre>
  
  <p>What I did is the following to create a web view:</p>
  
  <ul>
  <li>Created a new UIViewController scene</li>
  <li>Added a UIWebView to it</li>
  <li>connected the webview to .h controller</li>
  <li>Made my scene the inital scene</li>
  <li>Ran the app, nothing was loaded, no errors, just go straight to UIViewController with nothing in it, please help.</li>
  </ul>
  
  <p>I tried adding the following:</p>
  
  <pre><code>[self.view addSubview:self.webView];
  </code></pre>
  
  <p>That did nothing</p>