如何设置UIScrollView的滚动位置?

Tha*_*nks 24 iphone cocoa-touch uiscrollview uikit

我见过setContentOffset:animated:方法.这是否会滚动到特定位置,或者"偏移"是什么意思?

Rog*_*Rog 41

是.从Apple文档:

setContentOffset:animated: 设置与内容视图原点相对应的接收器原点的偏移量.