title: objective-c storyboard outlet and file owner connection issue
body: <p>I am pretty new to ios, objective-c and xcode.  Trying to learn by building a simple app using collection view. I am not sure I got the outlet and file owner's set and linked properly.</p>
  
  <p>I am getting following error:</p>
  
  <blockquote>
    <p>2015-01-16 08:15:19.711 test[4548:187055] <strong>* Assertion failure in
    -[ViewController loadView], /SourceCache/UIKit_Sim/UIKit-3318.16.14/UICollectionViewController.m:166
    2015-01-16 08:15:19.713 test[4548:187055] *</strong> Terminating app due to
    uncaught exception 'NSInternalInconsistencyException', reason:
    '-[UICollectionViewController loadView] loaded the
    "tzI-IH-vJx-view-Jhf-9m-MoA" nib but didn't get a UICollectionView.'</p>
  </blockquote>
  
  <p>I have a storyboard.  It has a View Controller.  Within the View Controller, I have a View.  Within this View, I have Collection View.  Within this Collection View, I have CollectionViewCell. Within CollectionViewCell, I have Image View. I am not sure how these should be connected.   </p>
  
  <p>Here is my code and I can't put up a screen shot, I just joined. Can someone help.  This should be easy but I spent quite of bit of time.</p>
  
  <p>Thanks   </p>
  
  <pre><code>==========================
  
  
  ViewController.m:
  
  #import "ViewController.h"
  
  #import "Cell.h"
  
  @interface ViewController (){
      NSArray *myArray;
  }
  
  
  @end
  
  @implementation ViewController
  
  - (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.
  }
  
  
  
  @end
  
  ===============================
  ViewController.h:
  
  #import &lt;UIKit/UIKit.h&gt;
  
  @interface ViewController : UICollectionViewController &lt;UICollectionViewDataSource, UICollectionViewDelegate&gt;
  
  @property (nonatomic, weak) IBOutlet UICollectionView *collectionView;
  
  @end
  
  
  ==============================
  
  Cell.h:
  
  
  #import &lt;UIKit/UIKit.h&gt;
  
  @interface Cell : UICollectionViewCell
  
  @property (nonatomic, weak) IBOutlet UIImageView *itemImageView;
  
  @end
  
  
  =============================
  
  Cell.m:
  
  #import "Cell.h"
  
  @implementation Cell
  
  @end
  </code></pre>