UITextView使用代码滑动到最底部 (swift代码为例,
2019-01-22 本文已影响16人
番茄炒西红柿啊
self.textView.layoutManager.allowsNonContiguousLayout = false;
self.textView.scrollRangeToVisible(NSRange.init(location: str.count , length: 1))
self.textView.layoutManager.allowsNonContiguousLayout = false;
self.textView.scrollRangeToVisible(NSRange.init(location: str.count , length: 1))