|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
UIAlertView *alert; -(void)showAlert{ alert = [[[UIAlertView alloc] initWithTitle:@"Are you sure..." message:nil delegate:selfcancelButtonTitle:nil otherButtonTitles: nil] autorelease]; [alert show]; UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; 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];
}




