Есть:UIToolbar + UITextField = Чат
@property (weak, nonatomic) IBOutlet UIToolbar *toolBar;
[nc addObserver:self selector:@selector(notificationKeyboard:) name:UIKeyboardWillShowNotification object:nil];
[nc addObserver:self selector:@selector(notificationKeyboard:) name:UIKeyboardWillHideNotification object:nil];
И попробуйте это:
- (void)notificationKeyboard:(NSNotification *)notification {
UIViewAnimationOptions keyboardCurve = [notification.userInfo[UIKeyboardAnimationCurveUserInfoKey] integerValue];
double keyboardDuration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] doubleValue];
CGRect keyboardRect = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
keyboardRect = [self.view convertRect:keyboardRect fromView:nil];
CGFloat pointY = CGRectGetMinY(keyboardRect);
void (^animations)(void) = ^{
CGRect toolBarRect = self.toolBar.frame;
toolBarRect.origin.y = pointY - CGRectGetHeight(toolBarRect);
self.toolBar.frame = toolBarRect;
};
[UIView animateWithDuration:keyboardDuration
delay:0
options:keyboardCurve
animations:animations
completion:nil];
}
Но нет анимации на мой взгляд :(
Некоторые detalės: - в раскадровке 1 панели с Ограничения Пробел (слева, справа, кнопка)