Enable UIButton inside UIImageView


/ Published in: Objective C
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. UIImageView *imageView;
  2. imageView.userInteractionEnabled=YES

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.