Annotation Callout Action Not Working
This is my code for my action that should take place when the annotation
callout is clicked. It is supposed to take me to a new ViewController but
does not. Is there a small error in this code or is it a bigger problem?
- (void)mapView:(MKMapView *)mapView
annotationView:(MKAnnotationView *)view
calloutAccessoryControlTapped:(UIControl *)control {
NSLog(@"calloutAccessoryControlTapped");
det = [[UIViewController alloc]init];
[self.navigationController pushViewController:det animated:YES];
}
No comments:
Post a Comment