Добавление активируемой по щелчку аннотации к UIMapView

Вот пример того, как подзапросы оценены в MySQL 6.0 .

, новый оптимизатор преобразует этот вид подзапросов в соединения.

5
задан Magic Bullet Dave 6 December 2009 в 19:52
поделиться

1 ответ

Думаю, я понял ... Реализован следующий метод делегата:

- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation
{
    MKPinAnnotationView *dropPin=[[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"venues"];

    UIButton *disclosureButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
    [disclosureButton addTarget:self action:@selector(mapCallOutPressed:) forControlEvents:UIControlEventTouchUpInside];

    dropPin.rightCalloutAccessoryView = disclosureButton;
    dropPin.animatesDrop = YES;
    dropPin.canShowCallout = YES;

    return dropPin;
}
9
ответ дан 14 December 2019 в 01:10
поделиться
Другие вопросы по тегам:

Похожие вопросы: