Skip to content

Instantly share code, notes, and snippets.

@pratikshabhisikar
Created March 20, 2012 11:30
Show Gist options
  • Save pratikshabhisikar/2134291 to your computer and use it in GitHub Desktop.
Save pratikshabhisikar/2134291 to your computer and use it in GitHub Desktop.
- (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