문제

I use a simple UICollectionView in ma iOS in my project.

The view loads about 100 Cells. The Problem appears even if a let the Cells empty.

After ViewDidLoad the Collection view Appears. When i start Scolling about the first three screen Pages down it lags - even with empty cells!

after that i becomes smooth. I also can get top of the page and try again. Scrolling kepps smooth.

도움이 되었습니까?

해결책

2 reasons that you might also encounter

1. Google analytics

If you set up to count every cell view. It starts fast but then slows down and lags because google analytics writes i/o (maybe some caching) as you scroll too fast.

2. DateTime Parsing

DateFormatter is hard if you setup for every cell. Make sure you have a singleton if possible.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top