Get the current UIScrollView scroll values on the

2019-02-07 21:09发布

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条回答
Anthone
2楼-- · 2019-02-07 21:58

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.

查看更多
登录 后发表回答