Skip to content

Instantly share code, notes, and snippets.

@sergiosvieira
Last active December 18, 2015 05:09
Show Gist options
  • Save sergiosvieira/5730818 to your computer and use it in GitHub Desktop.
Save sergiosvieira/5730818 to your computer and use it in GitHub Desktop.
notification center keyboard observer
- (void)enableKeyboardNotifications
{
NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter];
[defaultCenter addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];
[defaultCenter addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil];
}
- (void)keyboardWillShow:(NSNotification *)aNotification
{
}
- (void)keyboardWillHide:(NSNotification *)aNotification
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment