iOS 11 Beta 2 keyboard height is 0

Hey All,


in ios 11 Beta 2 it seems the keyboard height of the softkeyboard is always returning 0, which in turn breaks the ability to scroll contentview up when content is under the keyboard.


NSDictionary* info = [aNotification userInfo];

CGSize kbSize = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;


kbSize.Height is always 0, ive confirmed in both simulator and device that is occurs, is there another way to get keyboard height ? or just wait until its fixed. Ide really hate to hardcode keyboard heights. It was working fine in ios 11 beta 1.


Thanks !

Accepted Reply

Use UIKeyboardFrameEndUserInfoKey instead.

Replies

Use UIKeyboardFrameEndUserInfoKey instead.

Thank you for the reply ! that worked!!

this don't works on ipad with ios 11.1.3

have you another solution ?