开发者

how to prohibit UIScrollview scrolling when move in specific area?

I put one UIImageview as subview in a UIScrollview. When I zoom in the image, I can scroll the image around. Can I disable the scrolling when I touch and moving in a rectangle area of the image?

I want to get information from touchesBegan() of 开发者_如何学Pythoncustomed UIScrollview and customed UIImageview, but I found that when there are scrolling, no touchesBegan is called in customed UIImageview.


yourScrollView.scrollEnabled = YES; for scroll to be enabled.

yourScrollView.scrollEnabled = NO; for scroll to be disabled.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜