title: Error in loading ViewController- loaded the nib but the view outlet was not set
body: <p>My iOS 5-6 app is crashing after attempting to load a ViewController from a button pushed in one storyboard file (FifthViewController.storyboard) to a separate xib (WebViewController.xib). The exact error message: <code>Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "WebViewController" nib but the view outlet was not set.'</code></p>
  
  <p>This error typically appears when view outlets have not been connected or ViewControllers have not been assigned a class. In WebViewController.xib, everything is connected, including the view (you cannot disconnect this, actually) and my web view. My ViewController's class is correctly labeled as WebViewContrller.</p>
  
  <p>Here's my code:</p>
  
  <p><strong>WebViewController.h</strong></p>
  
  <pre><code>@property (weak, nonatomic) IBOutlet UIWebView *webView;
  @property (weak, nonatomic) NSURL *urlToLoad;
  
  - (id)initWithURL:(NSURL *)url;
  </code></pre>
  
  <p><strong>WebViewController.m</strong></p>
  
  <pre><code>@synthesize webView, urlToLoad;
  
  - (void)viewDidLoad {
  [super viewDidLoad];
  [webView loadRequest:[NSURLRequest requestWithURL:urlToLoad]];
  }
  
  - (id)initWithURL:(NSURL *)url {
  [self setUrlToLoad:url];
  return self;
  }
  </code></pre>
  
  <p><strong>FifthViewController.m</strong> -- this is the VC from where a button is place that calls WebViewController</p>
  
  <pre><code>- (IBAction)pushedArts:(id)sender {
  WebViewController *wvc = [[WebViewController alloc] initWithURL:[NSURL URLWithString:@"http://www.yahoo.com"]];
  [self presentModalViewController:wvc animated:YES];
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/WdM78.png" alt="image 1"><img src="https://i.stack.imgur.com/mSKxE.png" alt="image 2">
  The images show the connections within WebViewController.xib and its class. Any insights would be greatly appreciated. Thank you.</p>