Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个运行良好的 UITextView,直到它的内容大于它自己的框架。在那种情况下,它会向下滚动,但由于某种原因,我无法将它重新滚动回到开头,而只能向上滚动几行。如何控制内容的大小和滚动范围?谢谢
愚蠢的问题,但我还是会回答:
我有一个 scrollViewDidScroll 方法来控制 UITableView 滚动。当我的 textView 被滚动时,这个方法也被调用了——实际上造成了一些麻烦。所以我只是在第一行检查了发件人:
if (sender==textView) return;
谢谢您的帮助..