How to pass the touch event to superview when userInteractionEnabled = YES?

后端 未结 6 1115
青春惊慌失措
青春惊慌失措 2020-12-17 14:24

I have the following setup.

+- XXXCustomControl : UIControl -------+
| A                                    |
|   +- ContentView -------------------+|
|   |         


        
6条回答
  •  借酒劲吻你
    2020-12-17 14:48

    - Swift

    override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
        if <#condition#> { return true }
        else { return false }
    }
    

提交回复
热议问题