Created
April 18, 2012 16:42
-
-
Save patelrohan/2414914 to your computer and use it in GitHub Desktop.
SplashScreen
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
-(void)fadeScreen2 | |
{ | |
CGRect appFrame = [[UIScreen mainScreen] applicationFrame]; | |
UIView *view = [[UIView alloc] initWithFrame:appFrame]; | |
view.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth; | |
self.view = view; | |
[view release]; | |
act1 = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]; | |
[act1 setCenter:CGPointMake(320.0/2,300.0)]; | |
splashImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SecondBg.png"]]; | |
splashImageView.frame = CGRectMake(0, 0, 320, 460); | |
[self.view addSubview:splashImageView]; | |
[self.splashImageView addSubview:act1]; | |
[act1 startAnimating]; | |
[NSTimer scheduledTimerWithTimeInterval:2.05 target:self selector:@selector(DisplayMainScreen) userInfo:nil repeats:NO]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment