ios - 自动布局 : How to create a simple UIView over keyboard using Swift

标签 ios swift uiview autolayout toolbar

我想在 AutoLayout 中通过键盘创建一个简单的 UIView。

这里是 Yik Yak UIView 的例子。

enter image description here

我检查了Show UIView with buttons over keyboard, like in Skype,Viber messengers (Swift, iOS)但效果不佳。

最佳答案

为什么不使用 inputAccessoryView 而不是使用通知、计算大小等?这是 Apple 的示例:https://developer.apple.com/library/ios/samplecode/KeyboardAccessory/Introduction/Intro.html

关于ios - 自动布局 : How to create a simple UIView over keyboard using Swift,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33651285/

相关文章:

ios - 错误处理 - 错误传播

ios - 有没有办法在 UIView 大小更改时自动更新约束?

ios - PFRelation 从 PFRelation 中删除一个对象,而不是全部

ios - 在 iOS 应用程序中运行 R

ios - UIImageView 和 UIButton 背景图像在模拟器中加载时变黑

iphone - 如何为使用 CGBitmapContextCreate() 创建的绘图 Canvas 设置背景颜色?

ios - 在 iOS 上使用 swift 绘制 View 后以编程方式绘制新图层以进行查看

ios - 以编程方式创建一个对象数组 swift 3

ios - View 被切断(横向与纵向)

uitableview - 出现键盘时,iOS 8 UIView不会向上移动