I am trying to show a UITextField on top of the iPad keyboard.
I was able to get the height of the keyboard when it was presented with the notification.
However, in iPad, by change the language input of the keyboard -> most likely to Japanese, the height of the keyboard changed because a text-hypothesis area was shown on top of the keyboard, that caused my UITextfield hidden by that area....
Does anybody know how can I get the height changed notification or any other way?
Open an app that uses the iPadOS keyboard — like Notes or Messages. Use two fingers to pinch the keyboard inward to make it smaller.
Answer: A: There is a key on the iPad keyboard to move where it is positioned. It is the very bottom right key, image of a keyboard with an arrow. You can press and hold it and it will give you the option to dock it back where you're used to it.
While the following setting is typically associated with using a mouse with your iPad, you can try turning off the 'Show Onscreen Keyboard' setting in Settings > Accessibility > Touch > Assistive Touch.
The top of the keyboard needs to be about 2 inches from the bottom of the *device* as it is held. Prior to the iPhone X, this is easy because all devices used the exact same bezel insets, so it's 216 pts from the bottom of the screen.
The answer is that when you switch languages, the UIKeyboardDidShowNotification
fires for each change, so you always get the updated height.
See my answer here on how to set up responses to the showing and hiding, and getting the height.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With