方法创建并显示确认iOS SDK

Posted

tags:

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

Use like this: [self showConfirmation:@"May we send you information and offers by Email?" withMessage:@"1 email per week maximum"];
  1. - (void) showConfirmation:(NSString*)title withMessage:(NSString *) message {
  2. UIAlertView* confirmationView = [[UIAlertView alloc] initWithTitle:title
  3. message:message
  4. delegate:self
  5. cancelButtonTitle:NSLocalizedString(@"No", @"")
  6. otherButtonTitles:NSLocalizedString(@"Yes", @""), nil];
  7. [confirmationView show];
  8. [confirmationView release];
  9. }

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