Jak přidat UIButton do MKAnnotation (MKView)?

hlasů
0

Chci přidat tlačítko kliknutí schopný k MKAnnotation jak je vidět v tomto snímku z aplikace Mapy:

náhled http://www.img-hosting.de/bilder/24558PlacemarkWithIconpng

Položena 10/09/2009 v 11:38
zdroj uživatelem
V jiných jazycích...                            


1 odpovědí

hlasů
8

UIButton *disclosureButton = [UIButton buttonWithType: UIButtonTypeDetailDisclosure]; 
annoView.canShowCallout = YES;    
annoView.rightCalloutAccessoryView = disclosureButton;
Odpovězeno 10/09/2009 v 19:04
zdroj uživatelem

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