Come aggiungere un UIButton ad un MKAnnotation (mkview)?

voti
0

Voglio aggiungere un pulsante in grado click ad un MKAnnotation come si vede in questo screenshot dell'applicazione Mappe:

anteprima http://www.img-hosting.de/bilder/24558PlacemarkWithIconpng

È pubblicato 10/09/2009 alle 11:38
fonte dall'utente
In altre lingue...                            


1 risposte

voti
8

UIButton *disclosureButton = [UIButton buttonWithType: UIButtonTypeDetailDisclosure]; 
annoView.canShowCallout = YES;    
annoView.rightCalloutAccessoryView = disclosureButton;
Risposto il 10/09/2009 a 19:04
fonte dall'utente

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