I have a UIImageView. In IB I attached a 'Touch Up' event on this UIImageView to call an IBAction in my code. This all works fine.
In some cases I need to resize this UIImageView in my code. I do this by settings it's 'frame' property. The resizing works fine. The problem is that the 'touch area' stayed the original size.
What I mean is that let's say I start with a UIImageView of 100x100:
***
***
***
Then resize it to 200x100:
***xxx
***xxx
***xxx
In this case the UIImageView shows up in the entire area (* and x) but the touches only respond in the original area (represented by *).
How can I also resize the area that responds to touch events?
EDIT: I should also mention that I move the UIImageView's origin as well, in case that makes a difference.