So I've created a UIPageViewController that works like I want it to except for one thing. If I swipe my finger very fast across the screen, the page scrolls one position to either side, then bounces and displays 3/4th cm of the next page after that again. Like so:
Page zero || (current)Page one --> Scroll to Page two -->Get a glimpse of page three
However, page three isn't loaded yet, because this function only preloads one ViewController at both sides of the current one, and not two, so in my example, it'll preload page zero and two, but not three, hence creating a white glimpse until I intent to scroll there from page two.
Methods preloading the surrounding pages:
-(UIViewController *)pageViewController:(UIPageViewController *)pageViewController
viewControllerBeforeViewController:(UIViewController *)viewController
-(UIViewController *)pageViewController:(UIPageViewController *)pageViewController
viewControllerAfterViewController:(UIViewController *)viewController
How can I fix this??
Thank you!
Aucun commentaire:
Enregistrer un commentaire