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

前端 未结 6 1275
轻奢々
轻奢々 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:22

    One of the ways, I overcame this was by the following steps:

    1) Start Xcode and choose Empty Application

    2) Now Goto the File --> New Application under UI

    3) Give it a name --> myView

    4) Now create a custom Class --> myView

    5) Goto the .xib file now and click on the File Owner and under the Class Attribute enter --> myView as the custom Class

    6) Now add a button and create an action

    7) It should work

提交回复
热议问题