【发布时间】:2014-09-19 06:29:38
【问题描述】:
我已创建如下警报
UIAlertView *alert1 = [[UIAlertView alloc]
initWithTitle:@"Title"
message:@"message"
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:nil];
[alert1 show];
但它不显示标题。我怎样才能解决这个问题?
【问题讨论】:
-
你在 iOS8 中尝试过吗?如果是这样,请使用 UIAlertController。
-
你在 Xcode6 或更低版本中使用
-
这段代码在 iOS8 中运行,我已经检查过了
-
是的.. Xcode 6 和 iOS8
-
@dheeru 所以在我的情况下标题不显示.. :(
标签: ios objective-c iphone uialertview