![]() |
iOS: Crashes on resume from background | ![]() |
![]() |
![]() |
yezo
![]() |
![]() |
Ok, I managed to fix the crash. The cause was I didn't stop my game loop on SDL_APP_WILLENTERBACKGROUND / resume it on SDL_APP_WILLENTERFOREGROUND.
But the issue with the unwanted status bar appearing on resume is still there for iOS 6/7. |
||||||||||
|
![]() |
![]() |
yezo
![]() |
![]() |
All right, fixed the issue with status bar gap at top also - thanks to the brilliant thread here, which pointed me to the right direction after struggling for the whole day.
I commented out [UIApplication sharedApplication].statusBarHidden = NO; line in UIKit_SetWindowFullscreen function in SDL_uikitwindow.m I am not sure if this fix is suitable for merging into the repo, but I don't see the point of showing the status bar if the app gets into background (when the fullscreen argument of UIKit_SetWindowFullscreen is false) - with all the problems following. Anyway, I hope this will help someone (especially if the maintainers will manage to resolve this bug in the repo somehow). |
||||||||||
|