Размер пузырька аннотацииView слишком мал 9 из 10 раз. Я вызываю [self.mapView selectAnnotation:self.selectedVenue animated:YES];
, чтобы показать аннотацию, когда вы выбираете строку. Установил ли я animated:
YES
или NO
он по-прежнему отображает неправильный размер. Однако, если я увеличу размер высоты отображения карты до 200 литров, все будет выглядеть отлично, за исключением того, что изображение карты слишком велико для экрана 3,5 дюйма.MKPinAnnotationView не отображается правильно
Я хочу, чтобы вид на карту был таким размером и пузырем для аннотаций заголовок и подзаголовок правильно
изображение:.. https://dl.dropboxusercontent.com/u/5105730/anno.png
Вот как я создаю мой взгляд аннотаций
- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id<MKAnnotation>)annotation{
if ([annotation isKindOfClass:[FSVenue class]]) {
static NSString *PlaceAnnotationIdentifier = @"Place Identifier";
MKPinAnnotationView *annotationView = (MKPinAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:PlaceAnnotationIdentifier];
if (annotationView == nil) {
annotationView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:PlaceAnnotationIdentifier];
}
annotationView.annotation = annotation;
UIButton *calloutButton = [UIButton buttonWithType:(UIButtonTypeContactAdd)];
calloutButton.tintColor = self.themeColor;
annotationView.enabled = YES;
annotationView.pinColor = MKPinAnnotationColorGreen;
annotationView.canShowCallout = YES;
annotationView.rightCalloutAccessoryView = calloutButton;
annotationView.animatesDrop = YES;
return annotationView;
}
return nil;
}