iOS 删除 Main.storyboard 和 LaunchScreen.storyboard
2016-03-02 11:14
531 查看
第一步:
右键选中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方法中自定义
例如
右键选中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 日期字符串相互转换
- iOS中KeyChain的使用
- 打包ipa因“此证书的签发者无效” 导致的 “Missing iOS Distribution signing identity for”...的问题
- iOS多线程技术
- ios 文本转语音 播报 AVSpeechSynthesizer
- Nagios中常见参数的含义
- iOS获取设备型号、设备类型等信息
- iOS多线程之NSOperation的使用
- IOS模拟器上下部分黑屏(界面未占满)解决办法
- didReceiveMemoryWarning-内存警告处理方法-iOS
- iOS9 上支付宝AlipaySDK编译错误解决办法
- 【理解】 iOS沙盒(sandbox)机制(二)
- iOS 控制台unicode转中文
- iOS应用程序生命周期
- iOS获取设备型号、设备类型等信息
- 【理解】 iOS沙盒(sandbox)机制(一)
- Nagios+NRPE安装备忘录(二)
- iOS Error = NSURLErrorDomain Code=-1022 " 错误解决
- iOS拨打电话(三种方法)
- iOS多线程之GCD的基本使用