IOS LaunchScreen设置启动图片与启动页停留时间详解

2020-01-18 20:29:21王振洲

 iOS LaunchScreen设置启动图片 启动页停留时间

问题:想实现类似微信启动页一样 设置为一个整页面的图片

问题二:iOS启动页面如何设置多停留一会

新建的iOS 项目启动画面默认为LaunchScreen.xib 

如果想实现一张图片作为启动页,如下图

IOS,LaunchScreen,LaunchScreen设置启动图片,LaunchScreen设置启动页停留时间

IOS,LaunchScreen,LaunchScreen设置启动图片,LaunchScreen设置启动页停留时间

IOS,LaunchScreen,LaunchScreen设置启动图片,LaunchScreen设置启动页停留时间

如果启动不行  记得clear 一下工程

是启动页停留一段时间  只需要在 AppDelegate





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

  // Override point for customization after application launch.

  

  [NSThread sleepForTimeInterval:3.0];//设置启动页面时间


  return YES;

}


添加一个 [NSThread sleepForTimeInterval:3.0];//设置启动页面时间  

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!


注:相关教程知识阅读请移步到IOS开发频道。