Passing through touches to UIViews underneath

前端 未结 5 1370
庸人自扰
庸人自扰 2020-12-01 03:17

I have a UIView with 4 buttons on it and another UIView on top of the buttons view. The top most view contains a UIImageView with a <

5条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 03:59

    Select your View in Storyboard or XIB and...


    enter image description here


    Or in Swift

    view.isUserInteractionEnabled = false
    

提交回复
热议问题