I have a UITextField that responds to touch events when it is added as a subview of self.view. When I add it as a subview of a UIImageView it does not respond to touch events any more. I make it a firstResponder and the field is active and takes keyboard input still. Any ideas what is wrong?
Share
The docs for UIImageView state:
Try setting
imgView.userInteractionEnabled = YESIf this doesn’t work, I would try adding the UIImageView and the UITextField in a UIView instead. Anyway, this approach seems cleaner.