I looked at several tutorials and they all show the same way of doing this by creating a uibutton and then setting to the annotation but when I do it:
everything displays but the button
thanks for response
Code:
MKPinAnnotationView *newAnnotation = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:nil];
newAnnotation.pinColor = MKPinAnnotationColorGreen;
newAnnotation.animatesDrop = YES;
newAnnotation.canShowCallout = YES;
UIButton *rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
[rightButton setTitle:annotation.title forState:UIControlStateNormal];
[newAnnotation setRightCalloutAccessoryView:rightButton];
return newAnnotation;
everything displays but the button
thanks for response