[英]iPad - dont hide the keyboard for text field
In my iPad application, first view is authentication view. 在我的iPad应用程序中,第一个视图是身份验证视图。
It has 4 square boxes as iphone password screen and user just have to enter the numbers on the keyboard. 它有4个方形框作为iPhone密码屏幕,用户只需要在键盘上输入数字即可。 Here the square boxes are disabled. 在这里,方形框被禁用。
Now iPad has keyboard hide button and its hiding the keyboard. 现在,iPad具有键盘隐藏按钮,并且可以隐藏键盘。 The problem is that I'm not able to bring back the keyboard. 问题是我无法带回键盘。 How can I disable hiding the keyboard in this view? 如何禁用在此视图中隐藏键盘?
Make the authentication view a UITextFieldDelegate
and add the following method: 使身份验证视图成为UITextFieldDelegate
并添加以下方法:
- (BOOL)textFieldShouldEndEditing:(UITextField *)textField {
return NO;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.