Closed AdventuresOfMar closed 7 years ago
Scratch that, this is working for me now my code must have just needed a clean build
func mapView(_ mapView: MKMapView, annotationView view: MKAnnotationView, calloutAccessoryControlTapped control: UIControl) { print(view.annotation?.coordinate) / if let annotation = view.annotation as? TouringLocationAnnotation { mapView.removeAnnotation(annotation) } /
}
He
New Issue Checklist
Issue Description
Hello!
Hope all is well, I have a really quick question. I've looked through the previously posted issues and don't seem to see anyone else asking. How do you perform an action whenever a rightCalloutAccessoryView button is clicked or whenever an individual annotation is clicked. I'm attempting to use this function to test my button being fired but no luck
func mapView(_ mapView: MKMapView, annotationView view: MKAnnotationView, calloutAccessoryControlTapped control: UIControl) { print("pressed") }
Environment