- UIImageView *imageView = [self getYourImageView];
- imageView.image = [self getYourImage];
- imageView.userInteractionEnabled = YES;
- UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(yourHandlingCode:)];
- [imageView addGestureRecognizer:singleTap];
- [singleTap release];
转载于:https://www.cnblogs.com/luyinghuai/archive/2011/07/28/2119421.html