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
This commit is contained in:
Sam Lantinga 2011-03-14 23:04:52 -07:00
parent fb23223dc1
commit dc564a22c8

View file

@ -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 {