Isto está me enlouquecendo! Eu tenho um UICollectionViewController conforme mostrado abaixo:
class PhrasesCompactCollectionViewController: UICollectionViewController
NumberOfSections e cellForItemAt estão sendo chamados, mas sizeForItemAtIndexPath nunca é chamado. Estou usando exatamente o mesmo código em outro lugar e ele dispara corretamente. Estou usando o Xcode 8 Beta 6.
func collectionView(collectionView: UICollectionView,
layout collectionViewLayout: UICollectionViewLayout,
sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
return CGSize(width: 120, height:120)
}
