Consider a UICollectionView with flow layout and paging enabled (by setting pagingEnabled to YES).
What would be the simplest
If the UICollectionView scrolls horizontally, you divide its contentSize's width to its frame's width:
int pages = floor(self.collectionView.contentSize.width /
self.collectionView.frame.size.width) + 1;
If it scrolls vertically, you divide its contentSize's height to its frame's height:
int pages = floor(self.collectionView.contentSize.height /
self.collectionView.frame.size.height) + 1;