문제

지도 응용 프로그램 의이 스크린 샷에서 볼 수 있듯이 클릭 할 수있는 버튼을 mkannotation에 추가하고 싶습니다.

미리보기 http://www.img-hosting.de/bilder/24558placemarkwithiconpng

도움이 되었습니까?

해결책

UIButton *disclosureButton = [UIButton buttonWithType: UIButtonTypeDetailDisclosure]; 
annoView.canShowCallout = YES;    
annoView.rightCalloutAccessoryView = disclosureButton;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top