我想知道如何将右侧的呼叫注释添加到地图标注中。我尝试了很多方法,但好像没有用。非常感谢任何帮助。
编辑:我尝试了这行代码,但是注释没有发生任何变化。
编辑:我尝试了这行代码,但是注释没有发生任何变化。
- (MKAnnotationView *)mapview:(MKMapView *)sender viewForAnnotation:(id <MKAnnotation>)annotation
{
MKAnnotationView *aView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@""];
aView.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
aView.canShowCallout = YES;
aView.annotation = annotation;
return aView;
}