问题描述
最终目标是模仿 iMessages。当用户输入 UITextView 时,它会增加高度,我需要 InputAccesssoryView 也向上移动。但是,UIView 目前正在增加但没有向上移动。
当用户打字无效时尝试移动键盘。 InputAccessoryView 是通过 storyboard 设置的
func viewDidLoad() {
toolbarView.autoresizingMask = .flexibleHeight
texttView.inputAccessoryView = toolbarView
}
func textViewDidChange(_ textView: UITextView) {
toolbarView.bounds.height == textView.bounds.height
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)