Ios 如何在显示UIPageViewController后导航到下一页?

Ios 如何在显示UIPageViewController后导航到下一页?,ios,swift,uibutton,uipageviewcontroller,Ios,Swift,Uibutton,Uipageviewcontroller,正在尝试使用UIPageViewController显示指南页面,最后一页有一个启动应用程序的按钮。 添加了iAction以移动到下一页,但它不起作用 当用户单击UIPageViewController最后一页中的按钮时,我想移动到另一页 @IBAction func btnStart(_ sender: UIButton) { let storyboard = UIStoryboard(name: "Main", bundle: nil) let mai

正在尝试使用UIPageViewController显示指南页面,最后一页有一个启动应用程序的按钮。 添加了iAction以移动到下一页,但它不起作用

当用户单击UIPageViewController最后一页中的按钮时,我想移动到另一页

    @IBAction func btnStart(_ sender: UIButton) {
        let storyboard = UIStoryboard(name: "Main", bundle: nil)
        let main = storyboard.instantiateViewController(withIdentifier: "MainBoard")

        main.modalPresentationStyle = .fullScreen
        self.present(main, animated: false, completion: nil)
    }
这是我的按钮动作代码,不起作用。
我在UIPageViewController代码中添加了它

当你点击按钮时会发生什么?“移动到另一页”是什么意思?单击按钮时不会发生任何事情。我想在单击UIPageVIewCOntroller时显示另一个视图并完成UIPageVIewCOntroller调试显示了什么?点击按钮时,是否调用了
btnStart
?为什么要调用
btnStart
?故事板上是否有一个按钮与动作挂钩?