Jak dodać UIButton do MKAnnotation (mkview)?

głosy
0

Chcę dodać przycisk kliknij zdolnego do MKAnnotation jak widać na tym zrzucie aplikacji Maps:

Podgląd http://www.img-hosting.de/bilder/24558PlacemarkWithIconpng

Utwórz 10/09/2009 o 11:38
źródło użytkownik
W innych językach...                            


1 odpowiedzi

głosy
8

UIButton *disclosureButton = [UIButton buttonWithType: UIButtonTypeDetailDisclosure]; 
annoView.canShowCallout = YES;    
annoView.rightCalloutAccessoryView = disclosureButton;
Odpowiedział 10/09/2009 o 19:04
źródło użytkownik

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