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:
parent
fb23223dc1
commit
dc564a22c8
1 changed files with 3 additions and 1 deletions
|
@ -85,13 +85,15 @@ int main(int argc, char **argv) {
|
||||||
exit(exit_status);
|
exit(exit_status);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)applicationDidFinishLaunching:(UIApplication *)application {
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||||
|
|
||||||
/* Set working directory to resource path */
|
/* Set working directory to resource path */
|
||||||
[[NSFileManager defaultManager] changeCurrentDirectoryPath: [[NSBundle mainBundle] resourcePath]];
|
[[NSFileManager defaultManager] changeCurrentDirectoryPath: [[NSBundle mainBundle] resourcePath]];
|
||||||
|
|
||||||
[self performSelector:@selector(postFinishLaunch) withObject:nil
|
[self performSelector:@selector(postFinishLaunch) withObject:nil
|
||||||
afterDelay:0.0];
|
afterDelay:0.0];
|
||||||
|
|
||||||
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)applicationWillTerminate:(UIApplication *)application {
|
- (void)applicationWillTerminate:(UIApplication *)application {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue