IOS 7 UIAlertView添加按钮

时间:2014-01-14 14:53:00

标签: ios iphone objective-c

我有UIAlertView

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title
                                                message:message
                                               delegate:[self class]
                                      cancelButtonTitle:cancelButtonTitle
                                      otherButtonTitles:nil];

我想添加一系列标题:

for(NSString *buttonTitle in otherButtons)
    [alert addButtonWithTitle:buttonTitle];

当屏幕上显示警报时,标题不可见。

知道为什么会这样吗?

0 个答案:

没有答案