I have a common UICollectionView with paging and all.
Still trying to figure out why on viewDidLoad:, viewWillAppear: and viewDidAppear: , only on first view call, I get the wrong size when calling myCollectionView.collectionView.contentSize.width. It always respond with 0 width (height is always correct). Successive reload of the view get me the correct one.
Resorted to using
self.collectionView.collectionViewLayout.collectionViewContentSize
which give me the correct width event on first load.
Still a mystery to me.