When an annotation on the map is selected and the callout accessory control button is tapped I need to be able to find the index of that annotation. 该索引将用于查看数组中的信息,为下一个视图控制器做准备(详细)。
如何找到注释的索引?
- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
{
NSLog(@"Button clicked");
[self performSegueWithIdentifier:@"showDetail" sender:self];
}
谢谢