- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[NSThread sleepForTimeInterval:5]; //是不是很简单呀
// Add the view controller's view to the window and display.
[self.window addSubview:viewController.view];
[self.window makeKeyAndVisible];
return YES;
}
本文介绍了一种简单的iOS应用启动时增加延迟的方法,通过让主线程休眠来模拟加载过程,适用于测试或演示场景。
31

被折叠的 条评论
为什么被折叠?



