Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 容器视图内容更新时的swift 3触发器_Ios_Swift_Swift3_Uipageviewcontroller - Fatal编程技术网

Ios 容器视图内容更新时的swift 3触发器

Ios 容器视图内容更新时的swift 3触发器,ios,swift,swift3,uipageviewcontroller,Ios,Swift,Swift3,Uipageviewcontroller,我有一个包含容器视图的视图控制器。此容器视图用于显示UIPageViewController及其各种页面。 包含容器视图的视图在页面顶部还包含一个导航栏,其中包含页面控件项 安排如下: 当它运行时,我可以在绿色和蓝色视图控制器之间滑动,导航栏不会移动。如何更新页面控件以显示我所在的页面?您应该使用UIPageViewControllerDataSource func presentationCount(for: UIPageViewController) func presentationInd

我有一个包含容器视图的视图控制器。此容器视图用于显示
UIPageViewController
及其各种页面。 包含容器视图的视图在页面顶部还包含一个导航栏,其中包含页面控件项

安排如下:


当它运行时,我可以在绿色和蓝色视图控制器之间滑动,导航栏不会移动。如何更新页面控件以显示我所在的页面?

您应该使用UIPageViewControllerDataSource

func presentationCount(for: UIPageViewController)
func presentationIndex(for: UIPageViewController)

请添加当前代码。请参阅本教程