【问题标题】:UITextView auto scrollingUITextView 自动滚动
【发布时间】:2010-12-12 22:37:51
【问题描述】:

我已将 UITextView 放入 UITableViewCell 但我无法理解 - 为什么滚动总是到顶部?..我无法正确输入,因为我看不到我在哪里输入..

[textView scrollRangeToVisible:NSMakeRange([textView.text length]-1, 1)]; textView.selectedRange = NSMakeRange(textView.text.length - 1, 0); 这两种解决方案都不适用于我的情况......

【问题讨论】:

    标签: uitableview uitextview autoscroll


    【解决方案1】:

    如果 UITextView 太小,这是 Apple UI 的自动行为。 这是一个解决方案:How to stop UITextView from scrolling up when entering it

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-11-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-21
      • 1970-01-01
      • 2014-12-22
      相关资源
      最近更新 更多