我对 UIAlertViewStylePlainTextInput 有疑问。我在文本字段中收到警报,但没有键盘出现..?这是我的代码:
UIAlertView *enter = [[UIAlertView alloc] initWithTitle:@"Highscores" message:@"Please Enter Your Name" delegate:self cancelButtonTitle:@"Okay" otherButtonTitles:@"Abbrechen" nil];
enter.alertViewStyle = UIAlertViewStylePlainTextInput;
UITextField *theTextField = [enter textFieldAtIndex:0];
theTextField.placeholder = @"Your Name";
theTextField.keyboardAppearance = UIKeyboardAppearanceAlert;
theTextField.selected = NO;
[enter show];
我试过没有
UITextField *theTextField = [enter textFieldAtIndex:0];
theTextField.placeholder = @"Your Name";
theTextField.keyboardAppearance = UIKeyboardAppearanceAlert;
theTextField.selected = NO;
部分,但仍然没有键盘出现。
(我已经在我的设备和模拟器上测试过)
你对此有什么想法吗?
先感谢您。