Created
May 25, 2013 06:45
-
-
Save objectiveSee/5648181 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
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