diff --git a/Example/MapViewPlus/BasicCalloutView.swift b/Example/MapViewPlus/BasicCalloutView.swift index 649ae73..a939fa8 100644 --- a/Example/MapViewPlus/BasicCalloutView.swift +++ b/Example/MapViewPlus/BasicCalloutView.swift @@ -21,11 +21,6 @@ class BasicCalloutView: UIView { @IBOutlet weak var imageView: UIImageView! @IBOutlet weak var button: UIButton! - override func awakeFromNib() { - super.awakeFromNib() - isUserInteractionEnabled = true - } - @IBAction func buttonTouchDown(_ sender: Any) { delegate?.detailButtonTapped(withTitle: label.text!) } diff --git a/MapViewPlus/Classes/DefaultCalloutView/DefaultCalloutView.swift b/MapViewPlus/Classes/DefaultCalloutView/DefaultCalloutView.swift index 6359beb..15a408c 100644 --- a/MapViewPlus/Classes/DefaultCalloutView/DefaultCalloutView.swift +++ b/MapViewPlus/Classes/DefaultCalloutView/DefaultCalloutView.swift @@ -69,8 +69,6 @@ open class DefaultCalloutView: UIView { super.awakeFromNib() layer.cornerRadius = 5 imageView.layer.cornerRadius = 2 - - isUserInteractionEnabled = true } @IBAction func buttonBackgroundTouchDown(_ sender: Any) {