Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. UIAlertView *alertview = [[UIAlertView alloc] initWithTitle:@"title" message:@"nn" delegate:nil cancelButtonTitle:@"cancel" otherButtonTitles:nil];
  2. UIActivityIndicatorView *activityIndicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(130.0f, 50.0f, 20.0f, 20.0f)];
  3. [activityIndicator startAnimating];
  4. [alertview addSubview:activityIndicator];
  5. [alertview show];
  6. [alertview release];
  7. [activityIndicator release];
  8.  
  9. UIAlertView *alert;
  10.  
  11.  
  12.  
  13. alert = [[[UIAlertView alloc] initWithTitle:@"Configuring PreferencesnPlease Wait..." message:nil delegate:self cancelButtonTitle:nil otherButtonTitles: nil] autorelease];
  14. [alert show];
  15.  
  16. UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
  17.  
  18. // Adjust the indicator so it is up a few pixels from the bottom of the alert
  19. indicator.center = CGPointMake(alert.bounds.size.width / 2, alert.bounds.size.height - 50);
  20. [indicator startAnimating];
  21. [alert addSubview:indicator];
  22. [indicator release];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement