xcode7、iOS9 设置启动图片(Launch Image)
来源:互联网 发布:数据监控的技术方案 编辑:程序博客网 时间:2024/05/16 19:41
一.添加启动图片
二.拖入相应尺寸的图片,以本例子需要为例。
我试了一下这里的图片名字可以任意命名,不过格式必须为png格式,如果只是写个demo,也可以下载我所用的这套图片http://download.csdn.net/download/riven_wn/9196015。
640*960 (4/4s) 2X位置
640*1136 (5/5s/5c) R4位置
750*1334 (6) R4.7位置
1242*2208 (6 plus) R5.5位置
三.General里面的设置。
如图,Launch Image Source 要设置为LaunchImage,Launch Screen File的内容删除为空。
四.要把LaunchScreen.storyboard(低版本Xcode为LaunchScreen.xib)中的用作LaunchScreen的复选框勾选取消掉,如图。
到这里就大功告成了,so easy,不过有时候会出现第一次运行显示不正常的情况,一般把App删除重新run一遍就好了。
如果觉得显示时间不能满足需求,可以添加此方法延长显示时间(此为swift版本)
override func viewDidLoad() { super.viewDidLoad() NSThread.sleepForTimeInterval(3.0)//延长3秒}
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
[NSThreadsleepForTimeInterval:2.0];//设置启动页面时间,系统默认1秒
}
- xcode7、iOS9 设置启动图片(Launch Image)
- xcode7、iOS9 设置启动图片(Launch Image)
- xcode7、iOS9 设置启动图片(Launch Image)
- xcode7、iOS9 设置启动图片(Launch Image)
- xcode7、iOS9 设置启动图片(Launch Image)
- xcode7、iOS9 设置启动图片(Launch Image)
- xcode7、iOS9 设置启动图片(Launch Image)
- xcode7、iOS9 设置启动图片(Launch Image)
- xcode7、iOS9 设置启动图片(Launch Image)
- xcode7、iOS9 设置启动图片(Launch Image)(自己加了部分内容)
- Xcode7下设置Launch Image启动图片
- xcode7、iOS 后设置启动图片(Launch Image)
- iOS 9 Xcode7 设置Launch Image 启动图片
- 设置Launch Image 启动图片
- 设置Launch Image 启动图片
- 设置Launch Image 启动图片
- 设置Launch Image 启动图片
- Ios8 Xcode6 设置Launch Image 启动图片
- SIM908和STM32数据上传到上位机
- 【线段树/数学/扩展欧几里得】 Bzoj 3913:奇数国
- smart 和 dumb组件
- 在 iOS 9 中运行企业版应用
- SSH断开后重新连接
- xcode7、iOS9 设置启动图片(Launch Image)
- Cmake MySQL5.6 编译安装
- IOS页面自动布局 之 NSLayoutConstraint基础篇
- java编程中怎么控制小数点后的位数?
- Tomcat下载使用
- Java SE | SSM 日期类型的转换 由String 转换为Date
- 四大组件之Activity的瘦身版Fragment(片段)
- iOS界面布局之三——纯代码的autoLayout及布局动画 iOS8及VFL语言
- java集合框架图