Return to Snippet

Revision: 51200
at September 16, 2011 19:24 by vaishnavi


Initial Code
UIImageView *imageView;
imageView.userInteractionEnabled=YES

Initial URL


Initial Description
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

Initial Title
Enable UIButton inside UIImageView

Initial Tags


Initial Language
Objective C