Breaking News
Home / iOS / ObjectiveC / How do display a UIAlertView with Ok button only in iOS?

How do display a UIAlertView with Ok button only in iOS?

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. }
[pb_builder]

Check Also

Singleton Example in Objective C?

Solution static MyManager *sharedManager = nil; +(MyManager*) sharedManager {         if (sharedManager == nil)         …

Advertisment ad adsense adlogger