UIPageViewController gesture is calling viewControllerAfter: but doesn't animate

后端 未结 4 972
梦谈多话
梦谈多话 2020-12-09 21:07

I have a really interesting issue with UIPageViewController.

My project is set up very similarly to the example Page Based Application template. Every now and then (

4条回答
  •  情书的邮戳
    2020-12-09 21:57

    I have tried your solution and it came almost working, but still with some issues. The best solution came with adding method

     - (void)pageViewController:(UIPageViewController *)pageViewController willTransitionToViewControllers:(NSArray *)pendingViewControllers 
    

    which is available starting from iOS 6 and it is required for it. If not to implement it, issues may occur with those gestures. Implementing it helped to solve major part of issues.

提交回复
热议问题