如何设置 LaunchScreen 显示的时间

来源:互联网 发布:c socket编程教程 编辑:程序博客网 时间:2024/06/11 18:47
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;}


0 0
原创粉丝点击