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.
精彩评论