So, after finding my anwser in previos question here what I would like is to add GestureRecognizer on this UIImageView. When user tap, the color change. And when he tap again default image is restored.
Any tip to do that?
I was thinking about a List that I update in each click but not sure it is the best thing to do that.
here is the GestureRecognizer
UITapGestureRecognizer CreateTouchGesture(UIImageView imageView)
{
var touchGesture = new UITapGestureRecognizer((tg) =>
{
imageView.Image = DrawSelectedBorder(imageView.Image);
});
return touchGesture;
}