0

我想向 MKAnnotation 添加一个可点击的按钮,如 Maps 应用程序的截图所示:

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

4

1 回答 1

8
UIButton *disclosureButton = [UIButton buttonWithType: UIButtonTypeDetailDisclosure]; 
annoView.canShowCallout = YES;    
annoView.rightCalloutAccessoryView = disclosureButton;
于 2009-09-10T18:04:48.420 回答