I just wrote few lines of code and got stuck trying add a detail button to my annotation point, I don\'t know how. Does anyone know how to do that? The image below shows what I
I do not have access to your second image url but I assume you are looking something as follows. If not, leave comment below.
func mapView(mapView: MKMapView!, annotationView: MKAnnotationView, calloutAccessoryControlTapped control: UIControl) {
if control == annotationView.rightCalloutAccessoryView {
performSegueWithIdentifier("Detail", sender: self)
}
}
You could also refer to the following examples:
MKPointAnnotations touch event in swift
MapKit in Swift, Part 2