简体   繁体   中英

iPad - dont hide the keyboard for text field

In my iPad application, first view is authentication view.
It has 4 square boxes as iphone password screen and user just have to enter the numbers on the keyboard. Here the square boxes are disabled.
Now iPad has keyboard hide button and its hiding the keyboard. 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:

- (BOOL)textFieldShouldEndEditing:(UITextField *)textField {
    return NO;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM