开发者

Get the current UIScrollView scroll values on the iPhone?

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


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜