Simple question: If I have a UIButton and fill it with different subviews (UIViews, let's say) to make a grid or a collage type thing or whatever, will the button still work even if it's covered in other views?
Asked
Active
Viewed 111 times
0
-
2Your answer is here - http://stackoverflow.com/questions/2725254/custom-uibutton-subviews-no-events. – Perception Aug 08 '11 at 13:40
-
So as long as I have userInteractionEnabled set to NO, I should be okay? – Mason Aug 08 '11 at 13:41
1 Answers
1
If they are added as subviews to the UIButton (being a subclass of UIView),
[myButton addSubview: collageElementSubview];
there should be no problem (although I would disable user interaction on the subviews just to be safe).

MiguelB
- 1,913
- 18
- 20