Roei Nadam
Roei Nadam

Reputation: 1780

iOS 8.3 UiAlertView close apple keyboard

I upgraded my iPhone version from 8.2 to 8.3 today and saw that apple changed the keyboard behaviour. when I show UIAlertVIew the keyboard close automatically.

I need to keep the keyboard open. Is that possible?

Upvotes: 5

Views: 1958

Answers (2)

shubhangi
shubhangi

Reputation: 19

To workaround this bug in iOS 8.

Whenever you dismiss your alert by clicking any button just call [textfield becomeFirstResponder]. It will open the keyboard.

Or you can call [textfield becomeFirstResponder] after you do [alert show].

Upvotes: 1

Seyed Parsa Neshaei
Seyed Parsa Neshaei

Reputation: 3520

If you want the keyboard to be open after showing the alert, just use the following code:

Swift:

alert.show()
text1.becomeFirstResponder()

Objective-C:

[alert show];
[text1 becomeFirstResponder];

Upvotes: 0

Related Questions