Мне интересно, может ли кто-нибудь сказать мне, как добавить аксессуар с правым призывом к аннотации карты. все, что я пытаюсь, кажется, не получается, так что любая помощь была бы признательна.
EDIT
Я попробовал эту строку кода, но с аннотацией ничего не изменилось.
- (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;
}