title: Collection View Cells Not Showing
body: <p>I understand there are many questions answering this but my situation is slightly different. Most of the answers tell me to remove this line of code if you are using storyboards:</p>
  
  <p>collectionView?.registerClass(UICollectionViewCell.self, forCellWithReuseIdentifier: cellId)</p>
  
  <p>But I can't do that because I am using both storyboards and and non storyboards.</p>
  
  <p>I transition to this collection view controller (non-storyboard view) from a programmatic push view controller (storyboard controller- tab bar controller) like this:</p>
  
  <pre><code>func showChatLogController(user: User) {
      let chatLogController = ChatLogController(collectionViewLayout: UICollectionViewLayout())
      chatLogController.user = user
      chatLogController.hidesBottomBarWhenPushed = true
      navigationController?.pushViewController(chatLogController, animated: true)
  
  }
  </code></pre>
  
  <p>My collection view code seems to be write and I have no clue what the problem is. If you need to see the collection view code here it is:</p>
  
  <pre><code>let cellId = "cellId"
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      collectionView?.backgroundColor = UIColor.whiteColor()
      collectionView?.registerClass(UICollectionViewCell.self, forCellWithReuseIdentifier: cellId)
  
      setUpInputComponents()
  
      let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(SignUpViewController.dismissKeyboard))
      view.addGestureRecognizer(tap)
  }
  override func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -&gt; Int {
      return 5
  }
  
  override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -&gt; UICollectionViewCell {
      let cell = collectionView.dequeueReusableCellWithReuseIdentifier(cellId, forIndexPath: indexPath)
  
      cell.backgroundColor = UIColor.blueColor()
  
      return cell
  }
  
  func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -&gt; CGSize {
      return CGSize(width: view.frame.height, height: 80)
  } 
  </code></pre>
  
  <p>For some reason it does not display the cells. I have no clue why. Any help would be appreciated.</p>
  
  <p>PS: I don't know if this is important but to get to the collection view controller I am coming from a tab bar controller.</p>