Customization
I have a UICollectionView that allows the user to view 12 images per page. There are over 200,000 images that should be available in the application. I do not expect the user to go to the 20,000 page, so the function will go to a specific page.
Problem
In landscape orientation, paging is broken up on p. 16,385. The collection no longer adjusts to the page border. If you go back to page 16, 384, you can get it to start working again, but no page for 16,385 works.
My delegate also stops receiving the message scrollViewDidEndDecelerating: when an error occurs.
Hypothesis
The page 16,385 in landscape orientation starts with 16,777,216 pixels, which is 2 ^ 24. I think there is something in the UICollectionView or UIScrollView that breaks 2 ^ 24.
Is this just an undocumented limit? Am i lucky?
Example
I downloaded a project that demonstrates the problem. Here is the corresponding view controller. If you shake the iPad or the simulator, you will be taken to page 16,384, one page before an error occurs.
Snark
If you do not think that the user will need to go to page 20,000 , that will be cool . I do not think this is relevant to the issue.
source share