【发布时间】:2015-07-08 10:51:51
【问题描述】:
我将属性文本设置为我的 textView,然后 VC 出现的文本不是从一开始就出现的(它就像向下滚动到 100 点)。
为什么以及如何解决?
【问题讨论】:
-
您能再解释一下您的问题吗?你在做什么,出了什么问题?你想要什么?
标签: ios textview uitextview nsattributedstring
我将属性文本设置为我的 textView,然后 VC 出现的文本不是从一开始就出现的(它就像向下滚动到 100 点)。
为什么以及如何解决?
【问题讨论】:
标签: ios textview uitextview nsattributedstring
[已编辑] 在 viewWillAppear 或 ViewDidLoad 中添加
[textView scrollRangeToVisible:NSMakeRange(0, 0)];
【讨论】: