I have a UICollectionViewController in a storyboard that is associated with a file called XCollectionViewController.swift , which is a subclass of UICollectionViewController .
My code is as follows:
super.viewDidLoad() // Register cell classes self.collectionView!.registerClass(UICollectionViewCell.self, forCellWithReuseIdentifier: reuseIdentifier) } override func numberOfSectionsInCollectionView(collectionView: UICollectionView) -> Int { //
I have a reuse identifier for a set of cells, as it is specified in the file.
When I start, I see the background of the CollectionView, but not the 40 cells that I should see. What's wrong?
source share