Swift 学习笔记(三)删除 Main.storyboard 和 LaunchScreen.storyboard
来源:互联网 发布:ipad翻墙用什么软件 编辑:程序博客网 时间:2024/05/29 18:53
第一步:
- 右键选中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 }
1 0
- Swift 学习笔记(三)删除 Main.storyboard 和 LaunchScreen.storyboard
- Swift 学习笔记(三)删除 Main.storyboard 和 LaunchScreen.storyboard
- ios 删除Main.storyboard和 Launch.storyboard
- Swift 不使用 main storyBoard
- launchscreen.storyboard 用法
- The document “Main.storyboard” ||“LaunchScreen.storyboard” requires Xcode 8.0 or later.
- storyboard 学习笔记(一)
- (六)swift 在Main.storyboard中的快捷键
- Main.storyboard
- Storyboard学习三(TextField)
- LaunchScreen.storyboard使用--启动图
- swift3 删除main.storyboard之后(纯代码做项目)
- IOS学习笔记---storyboard
- Storyboard学习笔记
- storyboard学习笔记
- storyboard 学习笔记
- iOS学习笔记-Storyboard
- iOS学习笔记5 - xib和Storyboard
- Leetcode || Palindrome Number
- 软件测试缺陷报告的5c标准
- 网络必须首先了解的基本知识
- JAVA中的多线程
- 怎样用cmd命令查看系统信息
- Swift 学习笔记(三)删除 Main.storyboard 和 LaunchScreen.storyboard
- poj 1564 Sum It Up
- E哥的Git教程(二)基础命令
- 通过JMS监听Oracle AQ,在数据库变化时触发执行Java程序
- Linux一些命令总结
- RecyclerView的基本使用(2)
- 五笔字根口诀
- iOS开发——RegressionBug和RegressionTest浅析
- C#语言特性