1. 在ViewController的viewDidLoad方法里延时。
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
//[NSThread sleepForTimeInterval:3];
}
@end
2. 在AppDelegate的
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;方法里延时。
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[NSThread sleepForTimeInterval:3.0];
return YES;
}
还有其他好的方法请留言