/ 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
UIImageView *imageView; imageView.userInteractionEnabled=YES
You need to login to post a comment.
