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:
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.