我有UIAlertView
:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title
message:message
delegate:[self class]
cancelButtonTitle:cancelButtonTitle
otherButtonTitles:nil];
我想添加一系列标题:
for(NSString *buttonTitle in otherButtons)
[alert addButtonWithTitle:buttonTitle];
当屏幕上显示警报时,标题不可见。
知道为什么会这样吗?