You can do something like this
-(void)scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat pageWidth = scrollView.frame.size.width; int page = floor((scrollView.contentOffset.x - pageWidth / 1.5) / pageWidth) + 1; }
this method is called at any time when the contentoffset has changed programmatically or not.
From this method you can check if the "page" matches your current page, if not, you know that you need to load something. The trick here is that loading images does not hold scroll scrolling. This is where I am stuck.
page calculation will change to next / previous when you are halfway to the next page
maxpower
source share