Get the current UIScrollView scroll values on the iPhone?

前端 未结 1 970
广开言路
广开言路 2021-01-01 11:31

If I have a UIScrollView and move it around to a specific location, is there any way to get that position it has moved too?

相关标签:
1条回答
  • 2021-01-01 11:59

    Check UIScrollView's contentOffset property:

    contentOffset - The point at which the origin of the content view is offset from the origin of the scroll view.

    By implementing and setting UIScrollView's delegate you can also handle numerous scrolling/zooming events in UIScrollView.

    0 讨论(0)
提交回复
热议问题