Show alert (UIAlertView) on iPhone

by alex 13. February 2009 16:03

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{

if (buttonIndex == 1) {

//OK clicked

} else {

}

}

 

- (void) _showAlert:(NSString*)title

{

UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:title message:@"Check your networking configuration." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];

[alertView show];

[alertView release];

}

Currently rated 4.9 by 7 people

  • Currently 4.857143/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

General

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen