UICollectionView cellForItem called not correctly

后端 未结 1 1883
太阳男子
太阳男子 2021-01-28 13:55

Xcode 8.2.1 after migrate Swift 2.2 to Swift 3

UICollectionView\'s cellForItem not called correctly but before migration was working fine

I have CollectionView w

1条回答
  •  离开以前
    2021-01-28 14:29

    After migrate to Swift 3 from Swift 2.2

    UICollectionView In iOS10 prefetch set true (by default)

    so cellForItem was not called as linear sequence

    I get a hint in this post little bites of cocoa

    prefetching is for datasource instead for cell

    so somethimes not calling cellForItem(this is for cell) linearly (what i want)

    just uncheck prefetching enable it works fine like before migration

    0 讨论(0)
提交回复
热议问题