Make UITextView parent be its own inputAccessoryView

后端 未结 3 1536
没有蜡笔的小新
没有蜡笔的小新 2021-02-09 16:09

I\'m trying to achieve a similar keyboard interaction that Messages has in iOS 7. I have a UIView which contains a UITextView, and when the user select

3条回答
  •  你的背包
    2021-02-09 16:47

    This actually works best if you don't use .inputAccessoryView at all and instead just animate the position of the parent UIView as the keyboard opens and closes. Here is an answer describing the process step-by-step with all the code.

提交回复
热议问题