2 for 2012 for_2012 于 2013.08.15 15:23 提问

显示alertView键盘打不开

创建AlertView :

UIAlertView * alert = [[UIAlertView alloc] initWithTitle:nil message:@"The person you selected does not have an email address on file. Please enter their email address below." delegate:self cancelButtonTitle:nil otherButtonTitles:@"Cancel",@"Submit",nil];
alert.tag = 1;
alert.alertViewStyle = UIAlertViewStylePlainTextInput;
UITextField * alertTextField = [alert textFieldAtIndex:0];
alertTextField.keyboardType = UIKeyboardTypeEmailAddress;
alertTextField.placeholder = @"Enter Email address";
[alert show];

在ios6中键盘可以正常打开,但是在ios5中就有问题

这是在ios5.1中的截图:

CSDN移动问答

1个回答

zhou911110
zhou911110   2013.10.22 21:03

becomefirstresponder

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!