कैसे एक MKAnnotation (MKView) के लिए एक UIButton जोड़ने के लिए?

वोट
0

मैं के रूप में नक्शे आवेदन के इस स्क्रीनशॉट में देखा एक MKAnnotation के लिए क्लिक करें सक्षम बटन जोड़ना चाहते हैं:

पूर्वावलोकन 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