UIImage can not detect touch
<p>I used codes below to detect the touch on UIImage</p>

<p>//</p>

<pre><code>#import &lt;UIKit/UIKit.h&gt;

@interface KUIImageView : UIImageView
{


        CGPoint startLocation;
}
@end


@implementation KUIImageView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}
- (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event {
    // Retrieve the touch point
    CGPoint pt = [[touches anyObject] locationInView:self];
    startLocation = pt;
    [[self superview] bringSubviewToFront:self];
}
- (void) touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event {
    // Move relative to the original touch point
    CGPoint pt = [[touches anyObject] locationInView:self];
    CGRect frame = [self frame];
    frame.origin.x += pt.x - startLocation.x;
    frame.origin.y += pt.y - startLocation.y;
    [self setFrame:frame];
}



@end
</code></pre>

<p>I set the breakpoint at touchesBegan</p>

<p>But it was not triggered </p>

<p>the UIImage was on a UIScrollView by using</p>

<pre><code>[aScrollView addObject:aUIImageView];
</code></pre>

<p>Welcome any comment</p>
