objective c - iOS 11 - Keyboard Height is returning 0 in keyboard notification -


i have been using keyboard notifications without problem , getting exact height of keyboard.

- (void)keyboarddidshow:(nsnotification *) notification{     cgsize keyboardsize = [[[notification userinfo] objectforkey:uikeyboardframebeginuserinfokey] cgrectvalue].size;      nslog(@"%f",keyboardsize.height);} 

but ios 11 size of keyboard 0 when notification called.

what problem occurring in scenario? using xcode 9 beta 5

use this:

cgsize keyboardsize = [[[notification userinfo] objectforkey:uikeyboardframeenduserinfokey] cgrectvalue].size; 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -