Delegate should use application: didFinishLaunchingWithOptions:
authorSam Lantinga <slouken@libsdl.org>
Mon, 14 Mar 2011 23:04:52 -0700
changeset 5487 ad3abbbe0381
parent 5486 a036736283ef
child 5488 c20436fd5627
Delegate should use application: didFinishLaunchingWithOptions: Vittorio G. to Sam would it be possible to update the application delegate in SDL_uikitappdelagate to the suggest new method
src/video/uikit/SDL_uikitappdelegate.m
--- a/src/video/uikit/SDL_uikitappdelegate.m	Mon Mar 14 10:58:35 2011 -0700
+++ b/src/video/uikit/SDL_uikitappdelegate.m	Mon Mar 14 23:04:52 2011 -0700
@@ -85,13 +85,15 @@
     exit(exit_status);
 }
 
-- (void)applicationDidFinishLaunching:(UIApplication *)application {
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
             
     /* Set working directory to resource path */
     [[NSFileManager defaultManager] changeCurrentDirectoryPath: [[NSBundle mainBundle] resourcePath]];
     
     [self performSelector:@selector(postFinishLaunch) withObject:nil
 afterDelay:0.0];
+
+    return YES;
 }
 
 - (void)applicationWillTerminate:(UIApplication *)application {