I have a viewcontroller with 2 CollectionView Controllers.
I would like on rotation that only one of the collection views resize to a custom size while the other re
The question was , how to separate two collection views in sizeForItemAtIndexPath. Why just not something like this?
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
if collectionView == firstCollectionView{
return CGSize(width: self.frame.width/3, height: 40)
}
else if collectionView == secondCollectionView{
return CGSize(width: self.frame.width, height: self.frame.height-2)
}
abort()
}