From b87abeb9f9976b2b4559753de3a3b95e29ce043c Mon Sep 17 00:00:00 2001 From: volzhs Date: Thu, 7 Dec 2017 10:09:05 +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 8f2893e69e5..b591f80aa7c 100644 --- a/platform/iphone/app_delegate.mm +++ b/platform/iphone/app_delegate.mm @@ -564,7 +564,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]; @@ -671,6 +671,7 @@ static int frame_count = 0; isAdvertisingTrackingEnabled]]; #endif + return TRUE; }; - (void)applicationWillTerminate:(UIApplication *)application {