Turn page programmatically in UIPageViewController when using UIPageViewControllerDataSource?

后端 未结 3 1447
灰色年华
灰色年华 2021-01-15 02:32

I have an UIPageViewController and a class which conforms to UIPageViewControllerDataSource and manages the UIViewControllers which UIPageViewContr

3条回答
  •  时光说笑
    2021-01-15 03:23

    The Method mentioned in the answer ( setViewControllers:direction:animated:completion: ) sets the current view controller and is exactly what you need. With the first param you define the view controller(s), you want to display. Use one if you don't have a spine, if you book is left/right use two.

提交回复
热议问题