Last active
April 6, 2016 17:22
-
-
Save mekanics/22a96c2731946bba543c1af405d7e654 to your computer and use it in GitHub Desktop.
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
func keyboardWillChangeFrame(notification: NSNotification) { | |
// Add this in to your code: | |
// NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(keyboardWillChangeFrame), name: UIKeyboardWillChangeFrameNotification, object: nil) | |
let keyboardFrame = notification.userInfo![UIKeyboardFrameEndUserInfoKey]!.CGRectValue | |
// Do something with it | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment