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.
可能重复: 刷新/重新加载 UIScrollView 的最佳方式
我需要使用页面控件刷新 uiscrollview 我尝试使用 setneeddisplay 没有成功 那么如何刷新 uiscrollview 呢?
如果您的意思是通过重置返回到第一张图像或顶部,您可以尝试:
[_scrollView scrollRectToVisible:CGRectMake(0, 0, _scrollView.frame.size.width, _scrollView.frame.size.height) animated:YES];