mkannotation (mkview)에 Uibutton을 추가하는 방법?
-
05-07-2019 - |
문제
지도 응용 프로그램 의이 스크린 샷에서 볼 수 있듯이 클릭 할 수있는 버튼을 mkannotation에 추가하고 싶습니다.
미리보기 http://www.img-hosting.de/bilder/24558placemarkwithiconpng
해결책
UIButton *disclosureButton = [UIButton buttonWithType: UIButtonTypeDetailDisclosure];
annoView.canShowCallout = YES;
annoView.rightCalloutAccessoryView = disclosureButton;
제휴하지 않습니다 StackOverflow