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.
我最小化了一个 UIWebView 以便它可以从那一侧显示一个特定的对象。我的问题是,我怎样才能滚动到它,我怎样才能在不触摸它的情况下让它变大?
UIWebView有一个scrollView类型的属性UIScrollView。此属性允许您操作当前位置、当前缩放级别等:
UIWebView
scrollView
UIScrollView
[myWebView.scrollView setContentOffset:CGMakePoint(x, y) animated:YES]; [myWebView.scrollView setZoomScale:newScale animated:YES];