I have a page control with 2 pages. I allow zooming on both pages also. when I am zoomed in on the 2nd page, and I scroll around, the currentPage of the page control goes back to page 1 even though i am still on the 2nd page.
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
CGFloat pageWidth = scrollView.frame.size.width;
int page = floor((scrollView.contentOffset.x - pageWidth / 2) / pageWidth) + 1;
_pageControl.currentPage = page;
}