Consider a UICollectionView
with flow layout and paging enabled (by setting pagingEnabled
to YES
).
What would be the simplest way of obtaining the total number of pages?
And where would be the most appropriate place to update the total number of pages (given that it might change if items are added/deleted, the size of the collection view changes or the layout changes)?
See Question&Answers more detail:os