【发布时间】:2015-10-08 10:21:23
【问题描述】:
我的 iOS 应用程序中有一个文本字段,有时我需要显示警报消息 (UIAlertView) 出于不同的原因(例如,字符太多等)。
当我显示键盘隐藏的警报时。如何在显示警报消息时保持键盘打开?或者我错过了什么?
我使用警报的方式:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Sorry"
message:@"Too many characters."
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
【问题讨论】:
标签: ios objective-c uialertview ios9