Created
September 19, 2011 22:38
-
-
Save brandontreb/1227802 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
// Override point for customization after application launch. | |
self.window.rootViewController = self.viewController; | |
[self.window makeKeyAndVisible]; | |
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationDidTimeout:) name:kApplicationDidTimeoutNotification object:nil]; | |
return YES; | |
} | |
- (void) applicationDidTimeout:(NSNotification *) notif { | |
LoginViewController *controller = [[[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:[NSBundle mainBundle]] autorelease]; | |
[self.viewController presentModalViewController:controller animated:YES]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment