In my application I added a UIImageview
to a UIView
and a UIButton
added to that UIImageView
. That button is not responding to touch events and the action selector is not called. Why?
Because UIImageView
has its userInteractionEnabled
property set to NO
by default. Set it to YES
.