Is there a way to delay the screen capture made by iOS when app is entering background? The reason is that I’m sometimes showing a view when the user goes to home screen I want this view removed so it doesn’t show when app is resumed. The view in question is a SSHUDView (source code here) which I call dismissAnimated:NO in applicationWillResignActive. This actually works in the simulator but not on real device (the SSHUDView still shows when resuming). Anyone have a clue how to deal with this?
Is there a way to delay the screen capture made by iOS when app
Share
If you have a look at the
SSHUDViewimplementation it uses aUIWindowinstance to display the content; it makes it’s own UIWindow the keyUIWindow:Which is probably why it’s so tricky to get rid of. You might try to do what
SSHUDViewdoes after it dismisses itself to return focus to the main window:When the hud view dismissed itself it sends
resignKeyWindowto it’s private_hudWindowobject, you could possibly try to get a handle on that before you return focus to the main window, like so:But it may cause unexpected problems because you’re bypassing the
SSHUDViewAPI…