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))
本文标题:UITextView使用代码滑动到最底部 (swift代码为例,
本文链接:https://www.haomeiwen.com/subject/nmxljqtx.html
网友评论