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
Post a Comment