Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 iPad 应用程序中,第一个视图是身份验证视图。 它有 4 个方框作为 iphone 密码屏幕,用户只需在键盘上输入数字。在这里,方形框被禁用。 现在 iPad 有键盘隐藏按钮和隐藏键盘。问题是我无法带回键盘。如何禁用在此视图中隐藏键盘?
制作认证视图 aUITextFieldDelegate并添加以下方法:
UITextFieldDelegate
- (BOOL)textFieldShouldEndEditing:(UITextField *)textField { return NO; }