I'm trying to add an UIPageControl
and UICollectionView
. My collection is enable paging, and now I want my page control numberOfPages
is the collection view number of page.
I try to set it like this:
self.pageControl.numberOfPages = self.gridMenuCollection.frame.size.width / self.gridMenuCollection.contentSize.width;
but it's not work. If using my data array for numberOfPage
it return alot of dots and I don't want to do it.
Can anyone help?