iOS Application launch black screen, UINavigationController, Nib, RootViewController

前端 未结 1 827
独厮守ぢ
独厮守ぢ 2021-01-26 08:04

I\'ve got the following app, whose RootViewController is named TopicsViewController.

When I run it, there aren\'t any errors or breaks but the

1条回答
  •  闹比i
    闹比i (楼主)
    2021-01-26 08:41

    Instead of:

    [self.window addSubview:navController.view];
    

    Write:

    self.window.rootViewController = self.navController;
    

    0 讨论(0)
提交回复
热议问题