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
Post a Comment