Skip to content

Instantly share code, notes, and snippets.

@objectiveSee
Created May 25, 2013 06:45
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 objectiveSee/5648181 to your computer and use it in GitHub Desktop.
Save objectiveSee/5648181 to your computer and use it in GitHub Desktop.
double delayInSeconds = 0.3;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
NSLog(@"!!!!!!! Go time !!!!!!");
EAForcedUpdateViewController *f = [[EAForcedUpdateViewController alloc] initWithNibName:nil bundle:nil];
UIWindow *window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
window.rootViewController = f;
// [self.window resignKeyWindow];
// [self.window setHidden:YES];
// self.window.rootViewController = f;
[window makeKeyWindow];
[window makeKeyAndVisible];
[window becomeKeyWindow];
// [self.window addSubview:f.view];
double delayInSeconds = 200.0;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
[f description];
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment