1
我有2的UIImageViews foo1,foo2的未互相交叉,并且我有3个功能touchesBegan
,touchesMoved
,touchesEnded
touchesMoved的UIView检测
- (void) touchesMoved:(NSSet *) touches withEvent:(UIEvent *) event
{
UITouch *touch = [touches anyObject];
if (foo1 == [touch view]){
NSLog(@"foo1");
}
if (foo2 == [touch view]){
NSLog(@"foo2");
}
}
我持有触摸上foo1和移动我手指foo2的,但从nslog我得到foo1消息。
有没有可能在touchesMoved
函数中确定触摸foo 2时的功能?
谢谢