禁止蒙板以下的其他控制器响应事件.
override public func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
let view = super.hitTest(point, with: event)
if backView.frame.contains(point) {
return view
}else {
return self
}
}
禁止蒙板以下的其他控制器响应事件.
override public func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
let view = super.hitTest(point, with: event)
if backView.frame.contains(point) {
return view
}else {
return self
}
}
本文标题:hitTest(_ point: CGPoint, with e
本文链接:https://www.haomeiwen.com/subject/jfvcnttx.html
网友评论