I have an storyboard with a ViewController and inside the ViewController I have a UICollectionView with a prototype cell.
I already have an "MyCollectionViewController" (because I try to wrap my CollectionViewController in a ViewController). Now I want to reuse that controller but I can't figure out how to connect the CollectionView from the storyboard with a new CollectionViewController. Assigning the CollectionView from the CollectionViewController to the Outlet in the ViewController doesn't seem to work.
I know I could make the cell prototype a .xib file and create the CollectionView in code. But my employer prefers having everything in the storyboard for easier maintenance.
Aucun commentaire:
Enregistrer un commentaire