Skip to content

Instantly share code, notes, and snippets.

@brandontreb
Created September 19, 2011 22:38
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 brandontreb/1227802 to your computer and use it in GitHub Desktop.
Save brandontreb/1227802 to your computer and use it in GitHub Desktop.
- (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