瀏覽代碼

Merge pull request #14356 from volzhs/ios-delegate-master

use application:didFinishLaunchingWithOptions: instead of application…
Rémi Verschelde 7 年之前
父節點
當前提交
fbd270bfa8
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      platform/iphone/app_delegate.mm

+ 2 - 1
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 {