【发布时间】:2014-04-28 07:16:22
【问题描述】:
我在带有分页的 UIScrollView 中有一个 UIButton。我已经实现了
UIControlEventTouchDragInside
[transButton addTarget:self action:@selector(dragMoving:withEvent:) forControlEvents: UIControlEventTouchDragInside];
该按钮的事件。有时当按钮被拖动时,滚动视图会滚动到下一页。
如何防止滚动视图在 UIButton 被拖动时检测到滑动事件?
谢谢。
【问题讨论】:
标签: ios uiscrollview uibutton uipagecontrol