IOS UIScrollView - 同时滚动并单击元素

时间:2012-11-16 10:04:21

标签: ios uiscrollview

我有一个UIScrollView,在scrollView的内容区域之外有一个按钮。用户必须向上滚动并保持一个手指的弹簧效果并用另一个手指按下按钮。问题是从未检测到按钮上的触摸。

请参阅下图

The scroll view in it's initial state. the orange area is the scrollView, the white area the button

滚动视图处于初始状态。橙色区域是scrollView,白色区域是按钮

The user is now scrolling and holding with one finger to overcome the spring effect of the UIScrollView, and want to click the button, which is currently not possible

用户现在用一根手指滚动并按住以克服UIScrollView的弹簧效果,并想要点击按钮

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

检查一下: UIScrollView blocks all touches while zooming or scrolling

确保您在滚动视图上将多点触控设置为YES,并且没有启用独占触控的任何子视图。