Skip to content

Instantly share code, notes, and snippets.

@BlackMac
Created August 25, 2009 08:23
Show Gist options
  • Save BlackMac/174537 to your computer and use it in GitHub Desktop.
Save BlackMac/174537 to your computer and use it in GitHub Desktop.
- (void)applicationDidFinishLaunching:(UIApplication *)application {
UIView *startupView=[[UIView alloc] initWithFrame:CGRectMake(0, 20, 320, 460)];
UIImageView *waitImage=[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Default.png"]];
UIActivityIndicatorView *activity=[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
[startupView addSubview:waitImage];
[startupView addSubview:activity];
[activity setFrame:CGRectMake(141, 200, 37, 37)];
[activity startAnimating];
[window addSubview:startupView];
NSOperationQueue *operationQueue=[[NSOperationQueue alloc] init];
NSInvocationOperation *inOp=[[NSInvocationOperation alloc] initWithTarget:self
selector:@selector(startupSequence:)
object:startupView];
[operationQueue addOperation:inOp];
[inOp release];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment