Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS "Gboard" app, UIKeyboard notification height is wrong or invalid

Tags:

I'm trying to move the view up when the keyboard pops up over the UITextfield which is placed on UIScrollView. I'm using UIKeyboardWillShowNotification and UIKeyboardWillHideNotification for this.

It's working perfectly when using iOS Keyboard where I'm getting the height 297.

My client is using the Gboard keyboard, he complained that the view is not moving. When I tested, I'm getting the keyboard height as 44.

I've tried both keys UIKeyboardFrameBeginUserInfoKey and UIKeyboardFrameEndUserInfoKey for the NSNotifiction userInfo object. Both are giving 44 only.

I tried with UIKeyboardDidShowNotification and UIKeyboardDidHideNotification also, still same issue.

Could anyone help me with this..?

like image 536
arthankamal Avatar asked Aug 21 '16 16:08

arthankamal


1 Answers

Its late, but UIKeyboardWillChangeFrameNotification is what U want.

like image 75
Jack Martin Avatar answered Sep 20 '22 20:09

Jack Martin