UIButtonをMKAnnotation(MKView)に追加する方法は?
-
05-07-2019 - |
質問
Mapsアプリケーションの次のスクリーンショットに示すように、MKA注釈にクリック可能なボタンを追加したい
http://www.img-hosting.de/bilder/24558PlacemarkWithIconpngをプレビュー
解決
UIButton *disclosureButton = [UIButton buttonWithType: UIButtonTypeDetailDisclosure];
annoView.canShowCallout = YES;
annoView.rightCalloutAccessoryView = disclosureButton;
所属していません StackOverflow