Created
August 17, 2017 15:06
-
-
Save mehmetf/17a705da19e8d77b606175c277a592f9 to your computer and use it in GitHub Desktop.
secure window on iOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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