我有一张显示很多注释的地图,当我UIButtonTypeDetailDisclosure
在标注中点击时,annotationView.rightCalloutAccessoryView
我会看到一个空白的黑色视图。
-(void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
{
NSLog(@"%@", view.annotation.title);
MapPoint *annView = view.annotation;
DetailViewController *dvc = [[DetailViewController alloc] init];
dvc.titleLabel.text = annView.title;
dvc.textView.text = annView.subtitle;
[self.navigationController pushViewController:dvc animated:YES];
}
任何想法我做错了什么?
编辑:我正在使用情节提要