I have added a UICollectionView to a UIViewController, but it does not show up, why? I can see only the black background. Labels textcolor is white.
UPDATE
I had to implement the following UICollectionViewDataSource methods. The lesson that UICollectionView can not design via static cells, like UITableView, only via Dynamic Prototypes.
func collectionView(collectionView: UICollectionView!,
numberOfItemsInSection section: Int) -> Int
{
return 5
}
func collectionView(collectionView: UICollectionView!,
cellForItemAtIndexPath indexPath: NSIndexPath!) -> UICollectionViewCell!
{
let cell = collectionView.dequeueReusableCellWithReuseIdentifier("cell", forIndexPath: indexPath)
return cell as UICollectionViewCell
}