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

转载于:https://www.cnblogs.com/jgCho/p/5234169.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值