diff --git a/src/video/uikit/SDL_uikitappdelegate.m b/src/video/uikit/SDL_uikitappdelegate.m index 3b544db2c..d37a09124 100644 --- a/src/video/uikit/SDL_uikitappdelegate.m +++ b/src/video/uikit/SDL_uikitappdelegate.m @@ -186,8 +186,6 @@ static void SDL_IdleTimerDisabledChanged(const char *name, const char *oldValue, - (void)postFinishLaunch { - SDL_SetMainReady(); - /* run the user's application, passing argc and argv */ SDL_iPhoneSetEventPump(SDL_TRUE); exit_status = SDL_main(forward_argc, forward_argv); @@ -223,6 +221,7 @@ static void SDL_IdleTimerDisabledChanged(const char *name, const char *oldValue, SDL_SetHint(SDL_HINT_IDLE_TIMER_DISABLED, "0"); SDL_RegisterHintChangedCb(SDL_HINT_IDLE_TIMER_DISABLED, &SDL_IdleTimerDisabledChanged); + SDL_SetMainReady(); [self performSelector:@selector(postFinishLaunch) withObject:nil afterDelay:0.0]; return YES;