Как добавить UIButton к MKAnnotation (MKView)?

голоса
0

Я хочу, чтобы добавить кнопку щелчка, способную к MKAnnotation, как показано на скриншоте приложения Maps:

Просмотр http://www.img-hosting.de/bilder/24558PlacemarkWithIconpng

Задан 10/09/2009 в 11:38
источник пользователем
На других языках...                            


1 ответов

голоса
8

UIButton *disclosureButton = [UIButton buttonWithType: UIButtonTypeDetailDisclosure]; 
annoView.canShowCallout = YES;    
annoView.rightCalloutAccessoryView = disclosureButton;
Ответил 10/09/2009 в 19:04
источник пользователем

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more