设置启动页面-Launch Image

一、添加启动图

 

二、拖入相应尺寸的图片

图片必须是png格式的。不同机型需要的图片的尺寸:

iPhone4、4s-@2x 3.5寸 640*960
iPhone5、5s、5c-@2x 4.0寸 640*1136
iPhone6、6s-@2x 4.7寸 750*1334
iPhone6p、iPhone6sp-@3x 5.5寸 1242*2208

苹果官方给出的尺寸规范

 

三、General里的设置


五、把LaunchScreen.storyboard中的 Use As Launch Screen复选框取消勾选 。完成。

 

六、可以设置页面启动的时长。

在AppDelegate.m中

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    // 启动时间为3秒

    [NSThread sleepForTimeInterval:3.0f];

     return YES;

}

posted @ 2016-04-12 17:38  kunzir  阅读(256)  评论(0编辑  收藏  举报