开发者

UIScrollView zoomed won't produce swipe

I have a U开发者_开发问答IScrollView with zooming enabled, and a swipe gesture recognizer setup. When the user is not zoomed, the swipes come through great, but as soon as the user zooms in, the swipe won't come through.

My swipe recognizer is applied to the imageview, and I have tried to apply it to the scroller also. When zoomed, no go.

Is there a secret to getting the swipe while zoomed?

Thanks in advance!

Rob


Where is your swipe gesture recognizer?

Have you tried setting scrollView setCanCancelContentTouches:NO?


Is there a secret to getting the swipe while zoomed?

Yes, there is. Each UIImageView should be inside its own UIScrollView which in turn are inside of main UIScrollView. No gesture recognizers are needed, just set UIScrollViews options like zoom scales etc and implement UIScrollViewDelegate methods for master UIScrollView.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜