サブクラス化しUICollectionViewLayout
ました。ここまでは順調ですね。
ただし、画面よりも広いセルがいくつかあり、スクロール中に消えることがあります。さらにスクロールすると、魔法のようにあるべき場所に再表示されます。コードをお見せできますが、90% のケースで動作するので問題はないと思います。しかし、非常に大きなセル (画面サイズの 2 倍以上) が消えることがあります。
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;
私もこれらの投稿をしました: UICollectionView のセルが消えて、セルがまだ表示されている間に UICollectionView の大きなセルが削除されます ただし、解決策は言及されていません。誰でもこれで私を助けることができますか? 問題はApple側にあるのでしょうか?もしそうなら、それを自分で解決するために私にできることはありますか?