Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notification for change of iPad keyboard height

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?

like image 642
rae148 Avatar asked Aug 18 '11 01:08

rae148


People also ask

How do I change the keyboard height on my iPad?

Open an app that uses the iPadOS keyboard — like Notes or Messages. Use two fingers to pinch the keyboard inward to make it smaller.

Why is my iPad keyboard raised up?

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.

How do I stop the onscreen keyboard from popping up on my iPad?

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.

What is the height of keyboard in IOS?

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.


1 Answers

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.

like image 96
Dan Rosenstark Avatar answered Oct 08 '22 02:10

Dan Rosenstark