Open ytyubox opened 5 years ago
Button在指定Target時有3個雷區
A1:
lazy var button: UIButton = { let button = UIButton() button.addTarget(self,#selector(aSelector), .touchUpInside) return button }()
A2:
scrollView.isExclusiveTouch = true scrollView.delaysContentTouches = false
A3:
button.superView.isUserInteractionEnabled = true
Button在指定Target時有3個雷區
A1:
A2:
A3: