0

https://dl.dropboxusercontent.com/s/u91qmcqg1tdabv4/stackoverflow-01.png

Like this, but, return will make 0.5 change to 0.

2 Answers2

1

Call this method(use UICollectionViewDelegateFlowLayout):

- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath    
{    
if (_heightIsZero)
    return CGSizeMake(320, 0);
else
    return CGSizeMake(320, 75);
}
Nazariy Vlizlo
  • 778
  • 7
  • 16
0

This height is the calculation of pixels and you cannot put pixels in point; they are always numbers 0,1,2,3,4...

halfer
  • 19,824
  • 17
  • 99
  • 186
IQworld Master
  • 593
  • 4
  • 13