What is the correct way to proceed with this bool?

后端 未结 2 535
隐瞒了意图╮
隐瞒了意图╮ 2020-12-12 07:57

I have this bool in my AppDelegate.m:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
             


        
2条回答
  •  孤城傲影
    2020-12-12 08:41

    Use this in your AppDelegate.m

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];
    
    
    
        HomeController *viewController = // initialise it 
    
        self.window.rootViewController = viewController;
        [self.window makeKeyAndVisible];
    
        return YES;
    }
    

    or in the storyBoard just put the pointing arror to the view controller which you want to make as a root view controller.

提交回复
热议问题