如何设置 LaunchScreen 显示的时间

1. 打开“AppDelegate.m”文件;

2. 在如下代码段

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    return YES;
}
添加
[NSThread sleepForTimeInterval:3];
结果
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    [NSThread sleepForTimeInterval:3];
    
    return YES;
}


你可能感兴趣的:(ios,LaunchScreen)