iOS: Use didFinishLaunchingWithOptions to support iOS < 6.0
UIApplicationDelegate's willFinishLaunchingWithOptions message was introduced in 6.0. For now we don't need to distinguish the two, so no need to use willFinishLaunchingWithOptions on iOS >= 6.0. Change-Id: Ic6c2c9d2901def5a5500b186ed57fbe8b8c556d1 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
This commit is contained in:
parent
5bc32bcced
commit
f8624b188b
@ -53,7 +53,7 @@ extern int qt_main(int argc, char *argv[]);
|
||||
|
||||
@implementation QIOSMainWrapperApplicationDelegate
|
||||
|
||||
- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
|
||||
self.window.rootViewController = [[[QIOSViewController alloc] init] autorelease];
|
||||
@ -70,7 +70,7 @@ extern int qt_main(int argc, char *argv[]);
|
||||
selector:@selector(runUserMain) userInfo:nil repeats:NO];
|
||||
|
||||
if ([QIOSApplicationDelegate instancesRespondToSelector:_cmd])
|
||||
return [super application:application willFinishLaunchingWithOptions:launchOptions];
|
||||
return [super application:application didFinishLaunchingWithOptions:launchOptions];
|
||||
else
|
||||
return YES;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user