• <small id='xP8mC'></small><noframes id='xP8mC'>

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

      <legend id='xP8mC'><style id='xP8mC'><dir id='xP8mC'><q id='xP8mC'></q></dir></style></legend>

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

        处理这个布尔值的正确方法是什么?

        时间:2023-10-05
        1. <legend id='GFoOy'><style id='GFoOy'><dir id='GFoOy'><q id='GFoOy'></q></dir></style></legend>
            <i id='GFoOy'><tr id='GFoOy'><dt id='GFoOy'><q id='GFoOy'><span id='GFoOy'><b id='GFoOy'><form id='GFoOy'><ins id='GFoOy'></ins><ul id='GFoOy'></ul><sub id='GFoOy'></sub></form><legend id='GFoOy'></legend><bdo id='GFoOy'><pre id='GFoOy'><center id='GFoOy'></center></pre></bdo></b><th id='GFoOy'></th></span></q></dt></tr></i><div id='GFoOy'><tfoot id='GFoOy'></tfoot><dl id='GFoOy'><fieldset id='GFoOy'></fieldset></dl></div>

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

              <tbody id='GFoOy'></tbody>
            <tfoot id='GFoOy'></tfoot>
            • <bdo id='GFoOy'></bdo><ul id='GFoOy'></ul>

                  本文介绍了处理这个布尔值的正确方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我的 AppDelegate.m 中有这个布尔值:

                  I have this bool in my AppDelegate.m:

                  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
                      {
                          self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];
                  
                          UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
                  
                          UIViewController *viewController = // determine the initial view controller here and instantiate it with [storyboard instantiateViewControllerWithIdentifier:<storyboard id>];
                  
                          self.window.rootViewController = viewController;
                          [self.window makeKeyAndVisible];
                  
                          return YES;
                      }
                  

                  我在 *storyboard 上遇到了一个错误,但我主要想做的是在与主视图控制器不同的视图控制器中初始化应用程序.我拥有所有带有 ID 的视图控制器(例如我要启动的视图控制器名为Home").如果说我的 ViewController ID 是 home,我将如何正确编写这个 bool?

                  I'm getting an error on the *storyboard but what I am mainly trying to do is initialize the application in a different view controller than the main one. I have all the view controllers with IDs (such as the one I want to launch is named "Home"). How would I correctly write this bool if say my ViewController ID was home?

                  我的 main.m:

                  #import <UIKit/UIKit.h>
                  #import "AppDelegate.h"
                  
                  int main(int argc, char * argv[]) {
                      @autoreleasepool {
                          return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
                      }
                  }
                  

                  当我尝试从我的联系人列表页面返回原始主页时,我得到的 nil 会崩溃并突出显示 nil 行.这个和上面的委托布尔都给我带来了问题.任何澄清将非常感谢,谢谢.

                  The nil I get is whenever I try to go back to the original Home page from my Contact list page so it crashes and highlights the nil line. Both this and the above delegate bool are giving me issues. Any clarification would be very much appreciated, thanks.

                  推荐答案

                  堆栈跟踪说明出了什么问题:

                  The stack trace explains what's wrong:

                  • 由于未捕获的异常NSInvalidArgumentException"而终止应用程序,原因:找不到情节提要"在包 NSBundle(已加载)中命名为MainStoryboard"*

                  您的故事板不称为MainStoryboard".

                  Your storyboard isn't called "MainStoryboard".

                  这篇关于处理这个布尔值的正确方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 Swift 的布尔数组中找到多个 True 语句 下一篇:插入 BOOL 的 Objective-C 字典

                  相关文章

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

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