Last active
September 28, 2016 12:36
-
-
Save jrturton/5856836 to your computer and use it in GitHub Desktop.
Getting the keyboard's frame in local coordinates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CGRect keyboardFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; | |
keyboardFrame = [self.view.window convertRect:keyboardFrame fromWindow:nil]; | |
keyboardFrame = [self.view convertRect:keyboardFrame fromView:nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment