objective c - Change screen when iOS app is brought to foreground -


i have ios app (written in objective-c) which, when running in background, perform background task detect if moving greater 5mph. if has occurred (travelled > 5mph), specific screen (screen123) displayed when app brought foreground.

this works when app brought foreground briefly see last screen had been viewed previous use of app (for 1 second) before screen123 displayed. there way have app running in background , when brought foreground display screen123 (without previous screen displaying)?

the code causes screen123 displayed within applicationwillenterforeground in appdelegate.

ios uses snapshot of last state, hide transition delay app. seeing this.

read "prepare have app’s picture taken" in "strategies handling app state transitions" apple.

you going struggle rid of entirely. should think way smooth transition. maybe have screen contains content doesn't change, , fade "< 5mph" or "> 5mph" content onto screen afterwards.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -