Posted By

vaishnavi on 09/16/11


Tagged

touch UIButton uiimageview


Versions (?)

Enable UIButton inside UIImageView


 / 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

  1. UIImageView *imageView;
  2. imageView.userInteractionEnabled=YES

Report this snippet  

You need to login to post a comment.