I'm experiencing a layout issue with my collectionView. I've set the cell sizes to be different for the first cell (indexPath.row == 0) but then the same afterwards.
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
if (indexPath.row == 0) {
return CGSizeMake(290.0f, 168.0f);
}
else {
return CGSizeMake(144.0f, 114.5f);
}
}
So that works fine most of the time but when I reload my collectionView:
[viewController.collectionView reloadSections:[NSIndexSet indexSetWithIndex:0]];
The first cell becomes same size as all the other cells.
I didn't think this would be an issue, any ideas?