Swift 学习笔记(三)删除 Main.storyboard 和 LaunchScreen.storyboard

Swift 学习笔记(三)删除 Main.storyboard 和 LaunchScreen.storyboard,第1张

概述第一步: 右键选中Main.storyboard —- delete —— Move to Trash LaunchScreen同理 第二步 点击工程名,就是最顶级目录 右侧出现general选项卡 将Deployment info组内的Main Interface设为空 将App Icons and Launch Images 组内的 Launch Images Source设置为资源文件 (这

第一步:
右键选中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()        return true    }
总结

以上是内存溢出为你收集整理的Swift 学习笔记(三)删除 Main.storyboard 和 LaunchScreen.storyboard全部内容,希望文章能够帮你解决Swift 学习笔记(三)删除 Main.storyboard 和 LaunchScreen.storyboard所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1083245.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存