I have to show three components in one row of UICollectionView
I have written the following piece of code to manipulate flowlayout
- (CGSize)collectionView:(UICollectionView *)collectionView
layout:(UICollectionViewLayout *)collectionViewLayout
sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
UICollectionViewFlowLayout *flowLayout = (UICollectionViewFlowLayout *)collectionView.collectionViewLayout;
CGSize size = flowLayout.itemSize;
size.width = (Get_Bounds.width-40)/3;
size.height = 135;
return size;
}
This works fine in all iOS
devices but does not render good on iPhone 6 Plus
it renders only two component on this device.