【发布时间】:2009-05-27 06:07:08
【问题描述】:
我将UIImageView 与touchesBegan、touchesMoved、touchesEnded 一起移动。它运作良好,但触摸也适用于其他UIImageViews,躺在周围。
如何在移动UIImageView 时锁定触摸活动?我用一个布尔值尝试过这个,但没有成功,因为每次UIImageView 移动时都会调用touchesMoved,而不仅仅是一次。
【问题讨论】:
-
您是要停止对其他视图的触摸还是在每个移动会话中只处理一个触摸事件?
标签: iphone cocoa-touch animation quartz-graphics