Как добавить UIButton в MKAnnotation (MKView)? - PullRequest
0 голосов
/ 10 сентября 2009

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

Предварительный просмотр http://www.img -hosting.de / bilder / 24558PlacemarkWithIconpng

1 Ответ

8 голосов
/ 10 сентября 2009
UIButton *disclosureButton = [UIButton buttonWithType: UIButtonTypeDetailDisclosure]; 
annoView.canShowCallout = YES;    
annoView.rightCalloutAccessoryView = disclosureButton;
...