- resizedImageView.userInteractionEnabled = YES;
- UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(photoTapped)];
- [resizedImageView addGestureRecognizer:singleTap];//点击图片事件
- NSLog(@"haha");
- [self.view addSubview:resizedImageView];//加载图片
- //该片段来自于http://www.codesnippet.cn/detail/251220138228.html
来源: http://www.codesnippet.cn/detail/251220138228.html