0

谷歌了一下,发现了这个问题- UITextView with width > 512 does not show text

所以重新设置框架确实出现了 - 但现在 UITextField 不滚动。

我尝试使用setUserInteractions:YESand setScrollEnabled:YES,仍然没有运气。

想法?

4

1 回答 1

0

仅当文本大小高度> textView 高度时,在 textView 上滚动才有效,否则滚动将不起作用。

您应该设置 thr 帧 (0,0,320,50) 并在此文本字段中设置一个大文本,然后您可以看到 textView 上的滚动

于 2013-05-05T17:09:32.363 回答