Adding other views to UIButton

Q:

I want to add some views to UIButton, for example multiple UILabels, UIImages etc. One I add those view they do not get the touch events. How can I pass the touch events to UIButton?

Thanks

--------

A:

Set the userInteractionEnabled property of each of the subviews you added to your UIButton to NO.

posted @ 2013-10-23 17:31  Clin  阅读(163)  评论(0编辑  收藏  举报