Make UITextView parent be its own inputAccessoryView

后端 未结 3 1457
时光取名叫无心
时光取名叫无心 2021-02-09 16:29

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:55

    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.

提交回复
热议问题