我是 iPhone 的初学者,我正在处理触摸事件。我已经放了这段代码,但是在图像视图中没有执行触摸我还在 imageView 上使用了滚动视图,因此不应用触摸事件的原因。
我的代码是
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event 
{
    // get touch event
    UITouch *touch = [[event allTouches] anyObject];
    CGPoint touchLocation = [touch locationInView:self.view];
    if ([touch view] == imagedisplay) {
        // move the image view
        imagedisplay.center = touchLocation;
    }
}
但在那不执行触摸事件中给出任何建议任何源代码