/ Published in: Objective C
When you add a UIButton as a subview to UIImageView, it will not correspond to touch events automatically, UIImageView's userinteraction property needs to be set
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
UIImageView *imageView; imageView.userInteractionEnabled=YES