How do I create a new Swift project without using Storyboards?

后端 未结 13 948
不知归路
不知归路 2020-11-29 15:47

Creating a new project in XCode 6 doesn\'t allow to disable Storyboards. You can only select Swift or Objective-C and to use or not Core Data.

I tried deleting the s

13条回答
  •  情话喂你
    2020-11-29 16:07

    Updated for Swift 3.0:

    window = UIWindow()
    window?.rootViewController = ViewController()
    window?.makeKeyAndVisible()
    

提交回复
热议问题