答案 0 :(得分:0)
您可以添加单击手势识别器,就像这样。
UITapGestureRecognizer *singletapGestureRecognizer = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(handleSingleTapGesture:)];
[self.testView addGestureRecognizer:singletapGestureRecognizer];
}
现在在方法中,为您想要的图像添加颜色。