Application windows are expected to have a root view controller at the end of application launch occured

前端 未结 6 1276
轻奢々
轻奢々 2021-01-15 04:44

Getting the above error when my app launches. The following code is from my AppDelegate .h File

#import 

@interface TableViewAppDelegat         


        
6条回答
  •  攒了一身酷
    2021-01-15 05:26

    Swift 2 solution that worked for me :

    Insert the code below in AppDelegate -> didFinishLaunchingWithOptions

    self.window!.rootViewController = storyboard.instantiateViewControllerWithIdentifier("YourRootViewController") as? YourRootViewControllerClass

提交回复
热议问题