更新时间:2023-12-01 20:58:16
您需要调用 setViewControllers:direction:animated:completion:
。
此外,在iOS 6中,请注意,如果你使用UIPageViewControllerTransitionStyleScroll样式,因为如果 animated:
是一个主要的缓存错误此处讨论: UIPageViewController使用Scroll导航到错误的页面转换样式)。
Also, in iOS 6, watch out if you're using UIPageViewControllerTransitionStyleScroll style, as there is a major caching bug if animated:
is YES (see my discussion here: UIPageViewController navigates to wrong page with Scroll transition style).