addSubView to UIButton

前端 未结 6 1568
谎友^
谎友^ 2020-12-24 10:45

I\'m trying to add subviews to a UIButton. This is working fine right now. But the button isn\'t clickable anymore as soon as I add the subviews.

I use the following

6条回答
  •  猫巷女王i
    2020-12-24 11:25

    In Swift, test that is you have your UIButton blocked

    uibtn.userInteractionEnabled = false
    uibtn.exclusiveTouch = false
    

提交回复
热议问题