UITapGestureRecognizer not work when I animate the UIImageView
When I want to animate the UIImageView , the UITapGestureRecognizer added to it can not work. WHY??? -(void) testTap:(id)sender { NSLog(@"Test tap..."); } -(void) testSlide { UITapGestureRecognizer* testTap = [[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(testTap:)] autorelease]; testTap.numberOfTapsRequired = 2; UIImageView* imageView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tip_slide"]] autorelease]; [imageView setFrame:CGRectMake(40, 40, 200, 200)]; imageView.userInteractionEnabled = YES; imageView.multipleTouchEnabled = YES; [imageView