Created
March 20, 2012 11:30
-
-
Save pratikshabhisikar/2134291 to your computer and use it in GitHub Desktop.
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
- (void)applicationDidBecomeActive:(UIApplication *)application | |
{ | |
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. | |
NSLog(@"%s", __PRETTY_FUNCTION__); | |
if (loginController.parentViewController == NO) { | |
// Either login controller doesn't exists (app launch case) or it's already dismissed. | |
/* | |
1. instantiate new login controller. | |
2. present it. | |
*/ | |
}else { | |
// Login controller is still active. User probably quit the app without passing the login screen. | |
// Do nothing. This will retain the state of the login screen. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment