在UIPageViewController的底部放置一个栏 [英] Putting a bar on the bottom of the UIPageViewController
问题描述
我在情节提要中使用UIPageViewController,我想在屏幕底部创建一个带有标签的栏.所以像导航栏之类的东西,当您从UIPageViewController切换页面时,始终会停留在那儿.但是,在我的情节提要板上,我无法在PageViewController上放置视图或标签,如何实现此目的?例子:
I'm using the UIPageViewController in my storyboard and I want to create a bar on the bottom of the screen with a label on it. So something like the navigation bar, this always stays there when you switch pages from the UIPageViewController. However on my storyboard I cannot drop a view or label on the PageViewController, how can I achieve this? Example:
推荐答案
将PageViewController嵌入到另一个View控制器上添加的容器中.该图像将更好地解释它.
Embed the PageViewController in a container which is added on another View controller. This image will explain it better.
完成后,您可以将自定义视图添加为子视图.
Once that is done you can add the custom view as a subview over it.
这篇关于在UIPageViewController的底部放置一个栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!