summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2017-12-07 10:09:05 +0900
committervolzhs <volzhs@gmail.com>2017-12-07 10:09:05 +0900
commitb87abeb9f9976b2b4559753de3a3b95e29ce043c (patch)
treec5419223abaef3bf564918e61df3d91aea03fa13
parentb38378dd6c963d71d0c1ad40c53b29588e581757 (diff)
use application:didFinishLaunchingWithOptions: instead of applicationDidFinishLaunching: for iOS
-rw-r--r--platform/iphone/app_delegate.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/iphone/app_delegate.mm b/platform/iphone/app_delegate.mm
index 8f2893e69e..b591f80aa7 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 {