Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIAlertView *alertview = [[UIAlertView alloc] initWithTitle:@"title" message:@"nn" delegate:nil cancelButtonTitle:@"cancel" otherButtonTitles:nil];
- UIActivityIndicatorView *activityIndicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(130.0f, 50.0f, 20.0f, 20.0f)];
- [activityIndicator startAnimating];
- [alertview addSubview:activityIndicator];
- [alertview show];
- [alertview release];
- [activityIndicator release];
- UIAlertView *alert;
- alert = [[[UIAlertView alloc] initWithTitle:@"Configuring PreferencesnPlease Wait..." message:nil delegate:self cancelButtonTitle:nil otherButtonTitles: nil] autorelease];
- [alert show];
- UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
- // Adjust the indicator so it is up a few pixels from the bottom of the alert
- indicator.center = CGPointMake(alert.bounds.size.width / 2, alert.bounds.size.height - 50);
- [indicator startAnimating];
- [alert addSubview:indicator];
- [indicator release];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement