Was having some issues with UICollectionView
and spacing of the cells. I figured out how to change the spacing and works perfectly for my portrait view but not for my landscape view. I tried this to differentiate:
//set minimum spacing
if(UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation)){
layout.minimumLineSpacing = 100.0f;
}
else{
layout.minimumLineSpacing = 40.0f;
}
But unfortunately it doesn't change when I switch from portrait to landscape. Can anyone tell me how I can achieve this?