class MyButton : UIButton {
override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
return bounds.insetBy(dx: -50, dy: -50).contains(point)
}
}
class MyButton : UIButton {
override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
return bounds.insetBy(dx: -50, dy: -50).contains(point)
}
}
本文标题:swift view 修改热区
本文链接:https://www.haomeiwen.com/subject/hxyehftx.html
网友评论