0

Map ビューから別の View Controller へのセグエの作成に問題があります。ユーザーに注釈をクリックして、別のView Controllerをポップアップさせたい。注釈プレスと次のビュー コントローラの間のセグエの作成に問題があります。マップ ビューからナビゲーション ビュー コントローラーへのセグエに「annotationPress」という名前を付けました。マップ上の注釈をクリックするたびに、真っ黒な新しいビュー コントローラーが表示されます。アドバイスをいただければ幸いです。

    func mapView(mapView: MKMapView!, annotationView view: MKAnnotationView!, calloutAccessoryControlTapped control: UIControl!)
    {
//        performSegueWithIdentifier("annotationPress", sender: view)
    }


    override func performSegueWithIdentifier(identifier: String?, sender: AnyObject?) {
        println("segueing...")
        if identifier == "annotationPress"
        {

        }

    }
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        if segue.identifier == "annotationPress"
        {
            println("hello")
            var vc = MapRouteViewController()

        }
    }

ここに画像の説明を入力

4

1 に答える 1