Xcode将子级添加到容器视图

Xcode将子级添加到容器视图

本文介绍了Xcode将子级添加到容器视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉,如果答案很明显-对我来说不是,而且我似乎无法通过搜索找到直接答案。

Sorry if the answer to this is obvious - its not to me and I can't seem to find a straight forward answer by searching.

我创建了一个默认情况下带有子容器的Container View Controller。
我想在情节提要中添加第二(和第三个)子级,但是我可以看到如何将新的View Controller与Container View Controller链接起来。

I've created a Container View Controller which as default comes with a child.I want to add a second (and third) child in the storyboard but I can see how to link up a new View Controller with the Container View Controller.

有人可以建议吗?

非常感谢

推荐答案

是的,这是有关iOS的怪异事物之一……

Yup, it's one of those bizarre things about iOS ...

这就像您需要做的最普通,常见的事情做到-------,但您找不到它在任何地方解释了!

it's like the most normal, common thing you need to do ------- but you can't find it explained anywhere!

这是完整的故事...

Here's the full story ... https://stackoverflow.com/a/23403979/294884

滚动到以下部分: 高级!如何更改容器视图的类型。 这就是您要问的!干杯。

Scroll to the section: "Advanced! How to change the type of container view." which is what you ask! Cheers.

这篇关于Xcode将子级添加到容器视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 08:28