I think this implementation is obsolete today. Check out UICollectionView
documentation. And for paging you can find some already implemented solutions too. For example:
http://mobileappdev.learningtree.com/2012/12/13/paging-with-collection-views-part-1/
One more example:
http://adoptioncurve.net/archives/2013/04/creating-a-paged-photo-gallery-with-a-uicollectionview/
And check out the article from this dude, I like his posts:
http://khanlou.com/2013/04/paging-a-overflowing-collection-view/