Skip to content

Instantly share code, notes, and snippets.

@mehmetf
Created August 17, 2017 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mehmetf/17a705da19e8d77b606175c277a592f9 to your computer and use it in GitHub Desktop.
Save mehmetf/17a705da19e8d77b606175c277a592f9 to your computer and use it in GitHub Desktop.
secure window on iOS
// Hide your app’s key window when your app will resign active.
— (void)applicationWillResignActive:(UIApplication *)application {
self.window.hidden = YES;
}
// Show your app’s key window when your app becomes active again.
— (void)applicationDidBecomeActive:(UIApplication *)application {
self.window.hidden = NO;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment