In My Project I created Cell in UICollectionViewCell
Its got Error Terminating app due to uncaught exception
The code as follow.
GalleryCell.
I added the following two lines in NextViewController.swift
under viewDidLoad()
:
var nibName = UINib(nibName: "GalleryCell", bundle:nil)
collectionView.registerNib(nibName, forCellWithReuseIdentifier: "CELL")
The problem was that I was not registering the nib. Now that I'm doing that, it's working fine.