swift项目取消Main.storyboard文件使用纯代码启动

【swift项目取消Main.storyboard文件使用纯代码启动】1.删除Main.storyboard文件
2.删除General里Deployment info中的Main interface配置项里的"Main"
swift项目取消Main.storyboard文件使用纯代码启动
文章图片

3.SceneDelegate是用来在iPad上做分屏使用的, 一般开发手机app的话可以直接删除
4.删除AppDelegate中的configurationForConnecting和didDiscardSceneSessions方法, 这两个方法是用来设置AppDelegate代理给SceneDelegate用的
5.删除info.plist中的Application Scene Manifest配置项
swift项目取消Main.storyboard文件使用纯代码启动
文章图片

done! $ cmd + R运行项目看效果

    推荐阅读