Created
July 15, 2011 16:26
-
-
Save projectxcappe/1085019 to your computer and use it in GitHub Desktop.
splash screen
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
-(void)showSplash { | |
UIViewController *modalViewController = [[UIViewController alloc] init]; | |
modalViewController.view = modelView; | |
[self presentModalViewController:modalViewController animated:NO]; | |
[self performSelector:@selector(hideSplash) withObject:nil afterDelay:1.0]; | |
} | |
-(void)hideSplash{ | |
[[self modalViewController] dismissModalViewControllerAnimated:YES]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment