如何在没有任何代码的情况下使用故事板 segue 将 UIViewController 连接到 UIView?
How to connect UIViewController to UIView using storyboard segue, without any code?
我正在互联网上搜索一些音频教程,我最终找到了苹果的 demo/example。在这个例子中,我想知道他们如何使用故事板 segues 将 UIViewController 连接到 UIView。
Below is storyboard connections
When we run app below is it's output
任何人都可以解释如何实现这一目标。
他们正在使用容器视图来包含在其他地方定义的子控制器。
它实际上仍然是2个控制器之间的连接。没有独立的观点。
To create a parent-child container relationship at design time, add a container view object to your storyboard scene, as shown in Figure 5-3. A container view object is a placeholder object that represents the contents of a child view controller. Use that view to size and position the child’s root view in relation to the other views in the container...
请参阅 Apple 文档中的 Implementing a Container View Controller,在 Interface Builder 中配置容器一章。
Here container view is using. Container view controllers are a way to combine the content from multiple view controllers into a single user interface. Container view controllers are most often used to facilitate navigation and to create new user interface types based on existing content. please view this link for detail
我正在互联网上搜索一些音频教程,我最终找到了苹果的 demo/example。在这个例子中,我想知道他们如何使用故事板 segues 将 UIViewController 连接到 UIView。
Below is storyboard connections
When we run app below is it's output
任何人都可以解释如何实现这一目标。
他们正在使用容器视图来包含在其他地方定义的子控制器。
它实际上仍然是2个控制器之间的连接。没有独立的观点。
To create a parent-child container relationship at design time, add a container view object to your storyboard scene, as shown in Figure 5-3. A container view object is a placeholder object that represents the contents of a child view controller. Use that view to size and position the child’s root view in relation to the other views in the container...
请参阅 Apple 文档中的 Implementing a Container View Controller,在 Interface Builder 中配置容器一章。
Here container view is using. Container view controllers are a way to combine the content from multiple view controllers into a single user interface. Container view controllers are most often used to facilitate navigation and to create new user interface types based on existing content. please view this link for detail