I have an app with webView and some JS-tricks to present text. Paging is implemented in JS and I just pass events from gestures to JS functions. But what I miss is animation. Know user just see another portion of text when he turns the page with swipe. So I decided to use UIPageViewController. I need a one controller to be shown and it will change it state during animation of turning. So the same one will be returned every time in
-(UIViewController*) pageViewController:(UIPageViewController *)pageViewController viewControllerBeforeViewController:(UIViewController *)viewController
and
- (UIViewController*) pageViewController:(UIPageViewController *)pageViewController viewControllerAfterViewController:(UIViewController *)viewController
Now I have an error doing this.
Finally, the question - can only one controller be used for proper animation in pageViewController?