我想要一个键盘,它上面有一个Next,Previous和Done按钮.
我在许多应用程序中看到过这一点.
特别是有形式需要填写的地方.

我想实现与键盘上面类似的东西
我怎么能得到它?
我一直在做这样的事情来模仿旧版iOS上的键盘动画.
CGRect keyboardBeginFrame;
[[note.userInfo objectForKey:UIKeyboardFrameBeginUserInfoKey] getValue:&keyboardBeginFrame];
self.doneKeyboardButton.frame = CGRectMake(0, (keyboardBeginFrame.origin.y + keyboardBeginFrame.size.height) - 53, 106, 53);
[[[[UIApplication sharedApplication] windows] lastObject] addSubview:self.doneKeyboardButton];
CGPoint newCenter = CGPointMake(self.doneKeyboardButton.superview.frame.origin.x + self.doneKeyboardButton.frame.size.width/2,
self.doneKeyboardButton.superview.frame.size.height - self.doneKeyboardButton.frame.size.height/2);
[UIView animateWithDuration:[[note.userInfo objectForKey:UIKeyboardAnimationDurationUserInfoKey] floatValue]-.02
delay:.0
options:[[note.userInfo objectForKey:UIKeyboardAnimationCurveUserInfoKey] intValue]
animations:^{
self.contentView.frame = CGRectOffset(self.contentView.frame, 0, -TextFieldViewMovement);
self.doneKeyboardButton.center = newCenter;
}
completion:nil];
Run Code Online (Sandbox Code Playgroud)
但是,这已停止在iOS7上运行.看起来返回的值不再完全正确,完成按钮不再完全模仿键盘显示动画.
我可以处理两个事件:键盘显示和键盘隐藏时.在iOS 8.2及更早版本中,一切都运行良好.
但是如何在更改键盘语言时处理事件?当您将英文键盘更改为表情符号键盘时,表情符号键盘的高度(在ios 8.3中)更大并且隐藏了内容.
或者你有一个解决方案如何控制iOS 8.3表情符号键盘高度?

ios ×2
objective-c ×2
animation ×1
cocoa-touch ×1
ios4 ×1
ios8.3 ×1
iphone ×1
keyboard ×1
uiview ×1