У меня есть viewcontroller с 2 контроллерами CollectionView.
Я бы хотел, чтобы во время вращения только один из представлений коллекции изменял размер до нестандартного размера, а другой остался прежним.
Я попытался использовать:
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
// Adjust cell size for orientation
if (UIDeviceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) {
return CGSizeMake(170.f, 170.f);
}
return CGSizeMake(192.f, 192.f);
}
Однако это просто изменяет оба коллекции. Как я могу получить конкретную информацию только для одной коллекции?