I have a UIViewController in storyboard which hosts a collectionView which is referenced using a IBOutlet
. However, now I am placing this inside of a PageViewController
and referencing it like this, rather than with the use of a seque :
let initial = FeedCollectionViewController()
let viewControllers = [initial]
setViewControllers(viewControllers, direction: .Forward, animated: true, completion: nil)
The problem is that the collectionView
is now nil
.