title: loaded nib but the view outlet was not set while assigning a custom view for UITableView's header
body: <p>I'm trying to make a custom view for <code>UITableView</code> header, but, unfortunately, I get an exception:</p>
  
  <pre><code>*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ImagesView" nib but the view outlet was not set.'
  </code></pre>
  
  <p>First, in HomeViewController I created a tableView, then I created ImagesViewController with xib file, where designed my custom view. </p>
  
  <p>And in the end I try to assign ImagesView as a header for my tableView:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view.
  
      ImagesViewController *imagesView = [[ImagesViewController alloc] init];
      tableView.tableHeaderView = imagesView.view;
  
  }
  </code></pre>
  
  <p>What am I doing wrong? I'm a newbie in iOS development and figure it out by myself.</p>
  
  <p>Thanks for your help!</p>