apple22017/04/21 05:54ありがとうございます。 これでやってみたんですけど Value of type 'NSStoryboard' has no member 'instantiateViewController' ってエラーが出ます 私は初心者なものですから、基本的に必要な手続きが落ちているかもしれません
MasakiHori2017/04/21 06:03回答は `UIStoryboard` の話ですね。 `NSStoryboard` の場合は `instantiateController(withIdentifier:)`です。
apple22017/04/21 07:07表示したいViewの内容はMakeProject.swiftに書いてあり Main.storyboardのViewを選んでShow the identity Inspectorのidentity項目の identifireに"MakeProject"と入力してあります let next = storyboard?.instantiateController(withIdentifier: "MakeProject") as! MakeProject self.presentViewControllerAsModalWindow(next as NSViewController) 上記のように書くと 2017-04-21 15:56:28.406123+0900 studioWorksV3[58512:15130448] [General] Storyboard (<NSStoryboard: 0x600000000910>) doesn't contain a controller with identifier 'MakeProject' っとエラーになります MakeProjectのidentifireが間違っているのはわかるのですが どう直せばいいのでしょう
fuzzball2017/04/21 09:12 編集「別のウィンドウ」ではなく別のViewControllerですかね? ViewController の Identity の Storyboard ID に MakeProject を設定して下さい。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/21 05:54
2017/04/21 06:03
退会済みユーザー
2017/04/21 06:11
2017/04/21 07:07
2017/04/21 09:12 編集
2017/04/21 09:17
2017/04/24 08:43