Satyam
Satyam

Reputation: 15894

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?

Upvotes: 2

Views: 2117

Answers (1)

lnafziger
lnafziger

Reputation: 25740

Make the authentication view a UITextFieldDelegate and add the following method:

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

Upvotes: 5

Related Questions