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..?
Its late, but UIKeyboardWillChangeFrameNotification
is what U want.
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