0

我正在尝试从地图注释中的右控制按钮中选择:

 func mapView(_ mapView: MKMapView, annotationView view: MKAnnotationView, calloutAccessoryControlTapped control: UIControl) {
        if control == view.rightCalloutAccessoryView {
            performSegue(withIdentifier: "toTramsView", sender: view)
        }
    }

但我需要将发件人作为 MKAnnotation,因为其中包含我需要发送到目标 VC 的详细信息。现在发件人是引脚。我怎样才能做到这一点?

4

0 回答 0