이 코드를 UIcollectionView에 사용하고 있는데, iOS6에서는 작동하지만 ios7에서는 작동하지 않습니다. 일단 CollectionView를 스크롤하면 오리 엔테이션 전체가 엉망이됩니다. 셀을 스크롤하는 것은 해결할 수있는 정적 셀 식별자를 제공하는 귀하의 경우처럼, 그래서 사용 재 때문에 동안 이UICollection View ios 7 호
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
{
return 1;
}
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
return self.filteredNewsItems.count;
}
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
NewsItemCell *cell = (NewsItemCell *)[collectionView dequeueReusableCellWithReuseIdentifier:reuseIdentifier forIndexPath:indexPath];
cell.autoresizingMask = UIViewAutoresizingNone;
[cell loadWithArticle:self.filteredNewsItems[indexPath.item]];
return cell;
}
캡쳐 화면을 제공 할 수 있습니까? –
스냅 샷이 추가되었습니다. – Alex
또한 스크롤 후에 만 발생합니다. 그렇지 않으면 잘 보이고 지향적입니다. – Alex