I am trying to learn self-sizing UICollectionView Cell techniques using a certain tutorial. I can't figure out how to write this following swift code in objective-c:
if let cvl = collectionViewLayout as? UICollectionViewFlowLayout {
cvl.estimatedItemSize = CGSize(width: 150, height: 75)
}
Can someone please help?
collectionViewLayout
? Also, just out of curiosity, why are you trying to convert from the newer language to the older language? Do you need backwards-compatibility?