gpt4 book ai didi

ios - (XCODE) TextView : shows bottom of text as first

转载 作者:行者123 更新时间:2023-11-30 13:43:31 25 4
gpt4 key购买 nike

我看到了很多类似的问题,但没有答案对我没有帮助。我有带有静态单元格的表格 View 。每个单元格都与带有 TextView 的 View Controller 连接。每个 TextView 都有长文本,必须滚动。不幸的是,在移动到带有文本的 View 后,我看到文本的底部而不是顶部。

这就是 Storyboard中带有 View Controller 的部分的样子 http://imgur.com/cndYyYV

最佳答案

您在更新 textView 中的文本时尝试过此操作吗?

[textView setContentOffset:CGPointZero animated:YES];

关于ios - (XCODE) TextView : shows bottom of text as first,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35276355/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com