星空网 > 软件开发 > 操作系统

iOS 删除 Main.storyboard 和 LaunchScreen.storyboard

第一步:
右键选中Main.storyboard —- delete —— Move to Trash
LaunchScreen同理
第二步
点击工程名,就是最顶级目录
右侧出现general选项卡
将Deployment info组内的Main Interface设为空
将App Icons and Launch Images 组内的 Launch Images Source设置为资源文件
(这一步很重要,如果不设置启动页,上下就会出现黑边,无法适配iPhone5等大屏幕)
第三步
打开info.plist,删除Launch screen interface file base name 和 Main storyboard file base name选项。
第四步
指定第一个页面
打开AppDelegate.swift
在application方法中自定义
例如

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {    // Override point for customization after application launch.    window = UIWindow(frame: UIScreen.mainScreen().bounds)    window?.backgroundColor = UIColor.whiteColor()    window?.rootViewController = ViewController()    window?.makeKeyAndVisible()    ret



原标题:iOS 删除 Main.storyboard 和 LaunchScreen.storyboard

关键词:IOS

IOS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

康小璇:https://www.goluckyvip.com/tag/35111.html
康小璇 托娅 :https://www.goluckyvip.com/tag/35112.html
康众汽配:https://www.goluckyvip.com/tag/35113.html
考拉自营海外仓:https://www.goluckyvip.com/tag/35114.html
靠谱的海外仓:https://www.goluckyvip.com/tag/35115.html
靠谱的美国海外仓:https://www.goluckyvip.com/tag/35116.html
成都极地海洋公园攻略玩哪些项目最划算?:https://www.vstour.cn/a/365173.html
深圳玉龙公园簕杜鹃花海花期时间+门票+交通:https://www.vstour.cn/a/365174.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流