IOS延长启动画面的两种方法

来源:互联网 发布:华为p9上不了移动数据 编辑:程序博客网 时间:2024/06/05 16:30

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;}

还有其他好的方法请留言
0 0