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:
Tor Arne Vestbø 2013-03-18 14:30:28 +01:00 committed by The Qt Project
parent 5bc32bcced
commit f8624b188b

View File

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