Как добавить UIButton в MKAnnotation (MKView)?
-
05-07-2019 - |
Вопрос
Я хочу добавить кнопку с возможностью щелчка мышью к примечанию MKA, как показано на этом снимке экрана приложения "Карты":
Предварительный просмотр http://www.img-hosting.de/bilder/24558PlacemarkWithIconpng р>
Решение
UIButton *disclosureButton = [UIButton buttonWithType: UIButtonTypeDetailDisclosure];
annoView.canShowCallout = YES;
annoView.rightCalloutAccessoryView = disclosureButton;
Не связан с StackOverflow