所以我有一个UIView的子类,假设检测触摸。仅当触摸在当前视图内开始时,视图检测才会触摸。当触摸开始于视图之外并且它们在我的自定义视图中移动时touchesMoved不会被调用。检测当前视图中尚未启动的移动触摸的任何解决方案?iOS - 检测UIView中的触摸?
@implementation MycustomView
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
// This only gets called if touches have started in the current View
}
@end
这是记录和预期的行为。也许如果你对一些人有所了解*你想完成什么,可以帮助你完成* how *。 – NJones 2012-04-01 23:14:50
我在屏幕上有多个自定义视图我想检测UIViews作为触摸移动它们 – aryaxt 2012-04-01 23:16:18