方法创建并显示警报iOS SDK

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了方法创建并显示警报iOS SDK相关的知识,希望对你有一定的参考价值。

  1. - (void) showAlert:(NSString*)title withMessage:(NSString *) message {
  2. UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:title
  3. message:message
  4. delegate:self
  5. cancelButtonTitle:@"OK"
  6. otherButtonTitles:nil];
  7. [alertView show];
  8. [alertView release];
  9. }

以上是关于方法创建并显示警报iOS SDK的主要内容,如果未能解决你的问题,请参考以下文章