Created
July 10, 2015 09:51
-
-
Save mingsai/aa2b3e72d8075a2120b5 to your computer and use it in GitHub Desktop.
This file contains 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
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(handleKeyboardDidShowNotification:) | |
name:UIKeyboardDidShowNotification | |
object:nil]; | |
- (void)handleKeyboardDidShowNotification:(NSNotification *)notification | |
{ | |
NSDictionary* info = [notification userInfo]; | |
CGSize keyboardSize = [[info objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue].size; | |
// Move your textview into view here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment