简体   繁体   English

故事板:如何使用故事板为 UIPageViewController 设置初始视图控制器?

[英]Storyboard: how to set initial viewcontroller for UIPageViewController with storyboard?

I love the storyboard approach.我喜欢故事板方法。 That clearly show the screen havagation logic.这清楚地显示了屏幕破坏逻辑。 I want to specify the initial controller to be used by the UIPageViewController, but it doesn't appear.我想指定 UIPageViewController 使用的初始控制器,但它没有出现。

Here is my storyboard:这是我的故事板: 所需的故事板行为

How can I define the segue to ViewControlelr that my UIPageViewController will populate first?如何定义我的 UIPageViewController 将首先填充的 ViewControlelr 的转场? I really want this transition to be visually displayed in the storyboard.我真的希望这个过渡能够在故事板中直观地显示出来。

First select the specific controller that you want to make a root controller in the option window and then select is initial controller option it will make that first controller首先在选项窗口中选择要作为根控制器的特定控制器,然后选择是初始控制器选项,它将成为第一个控制器在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM