서브 클래스가 UICollectionViewLayout
입니다. 여태까지는 그런대로 잘됐다.
그러나 화면보다 더 넓은 셀이 있고 스크롤하는 동안 사라지는 경우가 있습니다. 좀 더 스크롤하면 마술처럼 다시 나타납니다. 내 코드를 보여줄 수는 있지만, 90 %의 케이스에서 작동하므로 아무 문제가 없다고 생각합니다. 그러나 실제로는 큰 셀 (화면 크기의 두 배 이상)이 때때로 사라집니다. UICollectionView's cell disappearing 및 Large cells in a UICollectionView getting removed while the cell is still displayed 그러나, 해결책은 언급되지 않습니다커스텀 레이아웃으로 커다란 UICollectionViewCell이 사라졌습니다
NSMutableArray* attributes = [NSMutableArray array];
for (int section=0; section < [[self collectionView] numberOfSections]; section++) {
[attributes addObject:[self layoutAttributesForSupplementaryViewOfKind:UICollectionElementKindSectionHeader atIndexPath:[NSIndexPath indexPathForItem:0 inSection:section]]];
for (int row=0; row < [[self collectionView] numberOfItemsInSection:section]; row++) {
NSIndexPath* indexPath = [NSIndexPath indexPathForItem:row inSection:section];
[attributes addObject:[self layoutAttributesForItemAtIndexPath:indexPath]];
}
}
return attributes;
나는 이러한 게시물을했습니다. 아무도 이걸 도와 줄 수 있니? 문제가 애플 측에있을 수 있습니까? 그리고 있다면, 내가 직접 해결할 수있는 것이 있습니까?
들으셨습니까? 개입 시간? –