resizedImageView.userInteractionEnabled = YES;
UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(photoTapped)]; [resizedImageView addGestureRecognizer:singleTap];//点击图片事件 NSLog(@"haha"); [self.view addSubview:resizedImageView];//加载图片