Applications are expected to have a root view controller at the end of application launch

后端 未结 30 1342
野的像风
野的像风 2020-11-22 06:42

I get the following error in my console:

Applications are expected to have a root view controller at the end of application launch

30条回答
  •  心在旅途
    2020-11-22 07:36

    Try to connect IBOutlet of tab bar controller to root view in the Interface Builder instead of

    self.window.rootViewController = self.tabBarController;
    

    But actually I haven't seen such error before.

提交回复
热议问题