无法滚动TextView的斯威夫特
问题描述:
我有一个TextView如下图所示无法滚动TextView的斯威夫特
我不能滚动文本视图,我加入UITextViewDelegate
在UIViewController
类以及设置isUserInteractionEnabled
财产textViewDidBeginEditing
func textViewDidBeginEditing(_ textView: UITextView) {
textView.backgroundColor = UIColor.lightGray
textView.isEditable = false
textView.isUserInteractionEnabled = true
textView.isScrollEnabled = true
}
我需要做什么?
而且,滚动在属性检查器中启用