UITextView 内容太多时,无法滚动到顶部的问题。
2017-09-22 本文已影响8人
阿斯顿卡卡
需要设置
UITextView 未显示时设置
_ui_textView.scrollEnabled =NO;
_ui_textView.layoutManager.allowsNonContiguousLayout =NO;
已经显示后设置
_ui_textView.scrollEnabled =YES;
需要设置
UITextView 未显示时设置
_ui_textView.scrollEnabled =NO;
_ui_textView.layoutManager.allowsNonContiguousLayout =NO;
已经显示后设置
_ui_textView.scrollEnabled =YES;