【问题标题】:UITextView content Inset Bottom not working iOS7UITextView 内容插入底部不工作 iOS7
【发布时间】:2013-10-24 18:53:21
【问题描述】:

UITextView 内容插入底部值在 iOS 7 中不起作用。

不工作我的意思是如果我继续在 UITextView 中输入并且光标到达末尾然后它会隐藏并且我看不到我正在输入的文本。

我试过了

[myTextView  setTextContainerInset:UIEdgeInsetsMake(0, 0, 20, 0)];

[myTextView setContentInset:UIEdgeInsetsMake(0, 0, 20, 0)];

但它没有任何效果。

【问题讨论】:

标签: ios7 uitextview uiedgeinsets


【解决方案1】:

您可能需要在视图控制器中关闭自动滚动视图调整:

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setAutomaticallyAdjustsScrollViewInsets:NO];
}

【讨论】:

  • 这个答案不相关。
猜你喜欢
  • 2013-10-25
  • 2013-10-03
  • 2013-09-04
  • 2018-03-09
  • 1970-01-01
  • 1970-01-01
  • 2014-01-22
  • 2013-11-19
  • 1970-01-01
相关资源
最近更新 更多