• <bdo id='NAi53'></bdo><ul id='NAi53'></ul>

      <small id='NAi53'></small><noframes id='NAi53'>

      <tfoot id='NAi53'></tfoot>

      1. <legend id='NAi53'><style id='NAi53'><dir id='NAi53'><q id='NAi53'></q></dir></style></legend>
        <i id='NAi53'><tr id='NAi53'><dt id='NAi53'><q id='NAi53'><span id='NAi53'><b id='NAi53'><form id='NAi53'><ins id='NAi53'></ins><ul id='NAi53'></ul><sub id='NAi53'></sub></form><legend id='NAi53'></legend><bdo id='NAi53'><pre id='NAi53'><center id='NAi53'></center></pre></bdo></b><th id='NAi53'></th></span></q></dt></tr></i><div id='NAi53'><tfoot id='NAi53'></tfoot><dl id='NAi53'><fieldset id='NAi53'></fieldset></dl></div>

        iOS 5 SDK 中的容器视图是什么?

        时间:2023-05-31
            <bdo id='8XoMM'></bdo><ul id='8XoMM'></ul>

            <tfoot id='8XoMM'></tfoot>
              <tbody id='8XoMM'></tbody>
            <legend id='8XoMM'><style id='8XoMM'><dir id='8XoMM'><q id='8XoMM'></q></dir></style></legend>

              <small id='8XoMM'></small><noframes id='8XoMM'>

            • <i id='8XoMM'><tr id='8XoMM'><dt id='8XoMM'><q id='8XoMM'><span id='8XoMM'><b id='8XoMM'><form id='8XoMM'><ins id='8XoMM'></ins><ul id='8XoMM'></ul><sub id='8XoMM'></sub></form><legend id='8XoMM'></legend><bdo id='8XoMM'><pre id='8XoMM'><center id='8XoMM'></center></pre></bdo></b><th id='8XoMM'></th></span></q></dt></tr></i><div id='8XoMM'><tfoot id='8XoMM'></tfoot><dl id='8XoMM'><fieldset id='8XoMM'></fieldset></dl></div>

                  本文介绍了iOS 5 SDK 中的容器视图是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我很困惑为什么以及何时需要使用容器视图?我们如何通过代码实例化一个容器视图?

                  I'm confused that why and when we need to use the container view? and how can we instantiate a Container View by code?

                  推荐答案

                  容器视图是一种视图,您可以将其拖入您的情节提要中已有的视图控制器中(我们称之为 viewControllerA).你会自动获得一个通过嵌入转场连接到该视图的视图控制器.这个新的视图控制器有它的框架集,所以它与容器视图的大小相同——如果你调整容器视图的大小,控制器也会自动调整大小.因此,如果您愿意,可以将多个容器视图拖入 viewControllerA 中,每个视图控制器都有自己的视图控制器.在代码中,如果您需要访问这些嵌入式视图控制器,可以从 viewControllerA.childViewControllers 访问它们——这将为您提供您拥有的任何嵌入式视图控制器的数组.

                  The container view is a view that you can drag into one of your view controllers that you already have in your storyboard (we'll call this viewControllerA). You automatically get a view controller connected to this view via an embed segue. This new view controller has its frame set, so that it's the same size as the container view -- if you resize the container view, the controller will automatically resize as well. So, if you want, you can drag in multiple container views into viewControllerA, and each will have its own view controller. In code, if you need to access these embedded view controllers, they can be accessed from viewControllerA.childViewControllers -- that will give you an array of any embedded view controllers that you have.

                  在 WWDC 2012 Session Videos 视频中讨论了这些容器视图,名为在您的应用中采用 Storyboards".

                  There is a discussion of these container views in the WWDC 2012 Session Videos video called "Adopting Storyboards in Your App".

                  这篇关于iOS 5 SDK 中的容器视图是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:核心蓝牙 - 范围内设备的持续 RSSI 更新 下一篇:获取包含在 NSString 中的文件的扩展名

                  相关文章

                  最新文章

                1. <i id='zXXTu'><tr id='zXXTu'><dt id='zXXTu'><q id='zXXTu'><span id='zXXTu'><b id='zXXTu'><form id='zXXTu'><ins id='zXXTu'></ins><ul id='zXXTu'></ul><sub id='zXXTu'></sub></form><legend id='zXXTu'></legend><bdo id='zXXTu'><pre id='zXXTu'><center id='zXXTu'></center></pre></bdo></b><th id='zXXTu'></th></span></q></dt></tr></i><div id='zXXTu'><tfoot id='zXXTu'></tfoot><dl id='zXXTu'><fieldset id='zXXTu'></fieldset></dl></div>

                      <small id='zXXTu'></small><noframes id='zXXTu'>

                    1. <legend id='zXXTu'><style id='zXXTu'><dir id='zXXTu'><q id='zXXTu'></q></dir></style></legend>

                    2. <tfoot id='zXXTu'></tfoot>

                        <bdo id='zXXTu'></bdo><ul id='zXXTu'></ul>