From d25b1cf88ad2e7bbd7bc59d2116ae3bd30044f38 Mon Sep 17 00:00:00 2001 From: volzhs Date: Thu, 7 Dec 2017 10:02:19 +0900 Subject: [PATCH] use application:didFinishLaunchingWithOptions: instead of applicationDidFinishLaunching: for iOS --- platform/iphone/app_delegate.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/iphone/app_delegate.mm b/platform/iphone/app_delegate.mm index e2cb6035604..26f7e23c62a 100644 --- a/platform/iphone/app_delegate.mm +++ b/platform/iphone/app_delegate.mm @@ -568,7 +568,7 @@ static int frame_count = 0; MainLoop::NOTIFICATION_OS_MEMORY_WARNING); }; -- (void)applicationDidFinishLaunching:(UIApplication *)application { +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { printf("**************** app delegate init\n"); CGRect rect = [[UIScreen mainScreen] bounds]; @@ -665,6 +665,7 @@ static int frame_count = 0; isAdvertisingTrackingEnabled]]; #endif + return TRUE; }; - (void)applicationWillTerminate:(UIApplication *)application {