Answer

  1. +(void) popupAlertWithTitle: (NSString *) title andMessage:(NSString *) msg
  2. {
  3.     UIAlertView *alert = [[UIAlertView alloc] initWithTitle: title message: msg delegate: self cancelButtonTitle: nil otherButtonTitles: @"OK",nil, nil];
  4.     [alert show];
  5.     [alert release];
  6. }