applicationDidFinishLaunching not called, using storyboards and swift3

前端 未结 1 757
执笔经年
执笔经年 2021-01-12 08:26

The applicationDidFinishLaunching is not being called when I run my app.

This is the code of my AppDelegate class:

@NSAppli         


        
相关标签:
1条回答
  • 2021-01-12 09:11

    Even if your app is running as an agent your storyboard is supposed to have this structure:

    If not, drag a blue cube (object) into the application scene, set the class of the object to AppDelegate and control-drag from Application to App Delegate and select delegate.

    If you even have no Application Scene, create a new project with storyboard enabled, delete your current Main.storyboard file and drag the Main.storyboard of the new created project into your current project.

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