How to call a segue from a disclosure button on a map pin?
问题 I have an app that plots pins on a mapview. Each pin uses this code to display a detail disclosure button, which when tapped calls a showDetail method which then calls the prepareForSegue method. Im thinking there is a lot of extra work here. Should I eliminate the showDetail and just call the prepareForSegue method? but how would I pass in the MyLocation object? Here is the code: - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation { static