美文网首页
hitTest(_ point: CGPoint, with e

hitTest(_ point: CGPoint, with e

作者: 歌手的剑 | 来源:发表于2017-03-14 14:03 被阅读107次

    禁止蒙板以下的其他控制器响应事件.



    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