View Single Post
  #1 (permalink)  
Old March 15th, 2012, 09:29 AM
IandiPhone IandiPhone is offline
Registered User
Points: 28, Level: 1
Points: 28, Level: 1 Points: 28, Level: 1 Points: 28, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Posts: 8
Thanks: 6
Thanked 0 Times in 0 Posts
Default Chapter 3 - long proces by 500 entries - alertView

Dear Bob, I need your help again. I press a button and then get the table view to see. Now I have over 200 entries with different graphics. This takes on an iPhone 3G for about 3 seconds. I would like to distribute the user with a showAlertx and UIActivityIndicatorView time. Unfortunately this is impossible. Can you help me please?

Thank you very much, Michael

Here is my code:

[self showAlert];

-(void)showAlert{

alert = [[[UIAlertView alloc] initWithTitle:@"Please Wait..." message:nil delegate:self cancelButtonTitle:nil otherButtonTitles: nil] autorelease];
[alert show];

UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicator ViewStyleWhiteLarge];

indicator.center = CGPointMake(alert.bounds.size.width / 2, alert.bounds.size.height - 50);

[indicator startAnimating];

[alert addSubview:indicator];

[indicator release];

}

-(void)dismissAlert{

[alert dismissWithClickedButtonIndex:0 animated:YES];
[alert release];

}