zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    html与app交互
    算法:算法的时间与空间复杂度
    php加解密函数集合
    redis主要用法
    【原创】RabbitMQ教程:php实现
    安装RabbitMq
    mysql复制表和字段
    vim文本操作
    JAVA学习(常量)
    JAVA学习(变量)
  • 原文地址:https://www.cnblogs.com/jgCho/p/5234169.html
Copyright © 2011-2022 走看看