Bläddra i källkod

use application:didFinishLaunchingWithOptions: instead of applicationDidFinishLaunching: for iOS

volzhs 7 år sedan
förälder
incheckning
b87abeb9f9
1 ändrade filer med 2 tillägg och 1 borttagningar
  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 {