将其他视图添加到UIButton

ios*_*nyc 2 uibutton uiview ios

我想为a添加一些视图UIButton.例如,多个UILabels,UIImages等等.我添加了这些视图,但它们没有获得触摸事件.我怎样才能将触摸事件传递给UIButton

谢谢

Cla*_*fou 5

userInteractionEnabled各财产subviews您添加到您的UIButtonNO.