title: Can´t add items to UICollectionView inside UIView xib
body: <h2>Objective</h2>
  <p>I wanna place my (BusinessViewTableHeader: UIView) as tableView header:</p>
  <pre><code>tableView.tableHeaderView = BusinessViewTableHeader.instanceFromNib() as! BusinessViewTableHeader
  </code></pre>
  <p>Inside BusinessViewTableHeader there is a UICollectionView which are supposed to display images when swiped, much like the Tinder app.</p>
  <p>This is my UIView subclass:</p>
  <pre><code>class BusinessViewTableHeader: UIView {
  
      @IBOutlet var collectionView: UICollectionView!
  
      override func awakeFromNib() {
          super.awakeFromNib()
          self.collectionView.delegate = self
          self.collectionView.registerNib(UINib(nibName: &quot;BusinessImageCollectionCell&quot;, bundle: nil), forCellWithReuseIdentifier: &quot;BusinessImageCollectionCell&quot;)
      }
  
      class func instanceFromNib() -&gt; UIView {
          return UINib(nibName: &quot;BusinessViewTableHeader&quot;, bundle: nil).instantiateWithOwner(nil, options: nil)[0] as! UIView
      }
      
      ....
  }
  
  extension BusinessViewTableHeader: UICollectionViewDelegate, UICollectionViewDataSource {
      ....
  }
  </code></pre>
  <h2>Problem</h2>
  <p>I have a custom UIView xib containing a UICollectionView. The problem is that I can´t add any cells (items) to the UICollectionView. I can add items to my other UICollectionView which are placed inside a UIViewController. The first image is showing the properties for the UICollectionView inside a UIViewController, the second image is showing the UICollectionView inside a UIView xib.</p>
  <p>[![UICollectionView in UIViewController][1]][1]
  [1]: http://i.stack.imgur.com/zFCeG.png</p>
  <p>[![UICollectionView in UIView xib][2][2]
  [2]: http://i.stack.imgur.com/jKU6z.png</p>
  <h2>Question</h2>
  <p>Why am I not able to add items to the UICollectionView inside the UIView xib? How?</p>