如何防止触摸移动特定uiview的事件?

时间:2011-01-10 14:10:14

标签: cocoa-touch uitouch

如何阻止特定uiview的触摸移动事件?

-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
    for (UITouch *touch in touches)
    {
        currentTouch=touch;
    }
    if (CGRectContainsPoint([ViewRotationArrow frame],[currentTouch locationInView:self.view]))
    {
        [self transformSpinnerwithTouches:currentTouch];
    }
}

0 个答案:

没有答案