I have displaying image thumbnails in a UIScrollView
, if user taps on a thumbnail, the application should open that image. if, however, user drags on a thumb, the scroll view should pan. Right now the scrollview only scrolls if user is able to drag on the small empty space between the thumbnails. the subviews (the one's displaying image thumbs) use a UITapGestureRecognizer
to detect taps, and exclusiveTouch
on subviews is set to NO
, UIScrollView
has its canCancelContentTouches
set to false.
尝试将canCancelContentTouches
设置为YES,如果看起来用户正在尝试滚动,则允许滚动视图覆盖其子视图。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.