1
私はannotation
を地図に載せていますが、ピンをクリックした後、右側にdetail disclosure info button
があるはずですので、ボタンをタップしてからコードを追加できます。しかし、私がプロジェクトを実行すると、ピンをクリックすると、info button
が表示されません。誰でもdisclosure info button
を追加するコードを提供できますか?MapKit注釈詳細開示情報ボタンを追加する方法は?
マイコード:
extension ViewController: MKMapView{
func mapView(mapView: MKMapView!, viewForAnnotation annotation: MKAnnotation!) -> MKAnnotationView! {
}
ありがとうRashwan、それはうまく動作します! – developermike
@Rob、もう1つの例を更新しました。 –
フィードバックをいただきありがとうございます。 –