From dc564a22c8b2f35dfe49dfaa599a629b7be834a1 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 14 Mar 2011 23:04:52 -0700 Subject: [PATCH] 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/video/uikit/SDL_uikitappdelegate.m b/src/video/uikit/SDL_uikitappdelegate.m index 595e17e5a..974cea7e7 100644 --- a/src/video/uikit/SDL_uikitappdelegate.m +++ b/src/video/uikit/SDL_uikitappdelegate.m @@ -85,13 +85,15 @@ int main(int argc, char **argv) { 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 {