How can I set the scrolling position of an UIScrollView?

前端 未结 2 496
闹比i
闹比i 2021-01-07 17:50

I\'ve seen the setContentOffset:animated: method. Is that going to scroll to a specific position, or what does that \"offset\" mean?

2条回答
  •  旧巷少年郎
    2021-01-07 18:07

    Yes. From the Apple documentation:

    setContentOffset:animated: Sets the offset from the content view’s origin that corresponds to the receiver’s origin.

提交回复
热议问题