[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];
- (void)keyboardWillShow:(NSNotification *)notification {
NSDictionary *info = [notification userInfo];
- (void)keyboardWillShow:(NSNotification *)notification {
NSDictionary *info = [notification userInfo];
CGFloat height = [[info objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue].size;
}