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.
我怎样才能让 webView 记住 webView.scrowView.contenOffSet 位置。这样当下载新数据时会有一个动画从下到上。
webView.scrowView.contenOffSet
[webView.scrollView setContentOffset:CGPointMake(0, 0) animated:YES];
用 JavaScript 试试这条线
[webView stringByEvaluatingJavaScriptFromString:@"window.scroll(0,0)"];