Skip to content

Instantly share code, notes, and snippets.

@patelrohan
Created April 18, 2012 16:42
Show Gist options
  • Save patelrohan/2414914 to your computer and use it in GitHub Desktop.
Save patelrohan/2414914 to your computer and use it in GitHub Desktop.
SplashScreen
-(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