sizeForItemAtIndexPath getting called for all indexes before load - I am pretty sure I am either running into a UICollectionView bug OR a poor design
问题 I am able to reproduce this on a very simple standalone app. I have a collectionView which I want to make circular/loop so the elements repeat again and again (aka when user is at the last element in array, it shows the first element again after. And if they are at the first and scroll left, it shows the last element again). So it's a never ending collectionView. So for a simple example, let's use days of week: ....Sunday, Monday, Tuesday, Wednesday..Saturday, Sunday, Monday.... In order to