• <tfoot id='hzogT'></tfoot>

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

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

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

        故事板 - UITabBarController

        时间:2023-05-30
            <tbody id='JooBU'></tbody>
            <bdo id='JooBU'></bdo><ul id='JooBU'></ul>

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

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

                3. 本文介绍了故事板 - UITabBarController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我今天正在玩 iOS 5 和故事板.我目前拥有它,以便主要故事板以 uitabbarcontroller 开始,然后是 navigationviewcontroler,最后是 uiviewcontroller.一切正常.

                  I was playing around with iOS 5 and storyboards today. I currently have it so that the main storyboards starts with a uitabbarcontroller then a navigationviewcontroler and finally a uiviewcontroller. All that works fine.

                  我正在寻找的是如何在应用程序启动时动态设置 uitabbarcontroller 正在显示的 viewconotroller.所以我想使用 CoreData 来查看一个表是否为空,它是选择第二个视图控制器(标签栏项目 2),如果没有选择第一个视图控制器(标签栏项目 1).

                  What I'm looking for is how to dynamically set which viewconotroller the uitabbarcontroller is displaying when the application starts. So I'd want to use CoreData to see if a table was empty and it it was select the second viewcontroller (tabbar item 2) and if not select the first viewcontroller (tabbar item 1).

                  由于故事板正在处理正在显示的内容,我不确定如何在应用程序委托中进行设置?

                  Since the storyboard is handling what is being displayed, I wasn't sure how in the app delegate I could set this?

                  希望有人可以在这里为我指明正确的方向!

                  Hoping someone can point me in the right direction here!

                  谢谢!

                  推荐答案

                  您的应用程序委托将有一个窗口属性.这可用于获取指向情节提要的初始视图控制器(将是您的 UITabBarController)的指针,例如来自我的应用程序委托应用程序之一的此示例:didFinishLaunchingWithOptions:

                  Your app delegate will have a window property. That can be used to get a pointer to the storyboard's initial view controller (which will be your UITabBarController), like this example from one of my app delegates application:didFinishLaunchingWithOptions:

                  UITabBarController *tabController =
                     (UITabBarController *)self.window.rootViewController;
                  tabController.selectedIndex =
                     [defaults integerForKey:kOptionLastTabSelectedKey];
                  tabController.delegate = self;
                  

                  这篇关于故事板 - UITabBarController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:UILocalNotification 应该在每个工作日重复,但也会在 下一篇:检查iOS应用是否在应用商店中

                  相关文章

                  最新文章

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

                4. <tfoot id='wTtWN'></tfoot><legend id='wTtWN'><style id='wTtWN'><dir id='wTtWN'><q id='wTtWN'></q></dir></style></legend>

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

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