私は、アプリケーションデリゲートの起動時に2つのストーリーボードの間で決定しようとしています。 最初にストーリーボードの自動ロードを防ぐためにInfo.plistのNSMainStoryboardFile = Mainエントリを削除しました。起動時のストーリーボードの決定
次に、私はAppDelegateからメインストーリーボードをロードしようとしましたが、これは機能しません。
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(aNotification: NSNotification) {
let storyboard = NSStoryboard(name: "Main", bundle: nil)
storyboard.instantiateInitialController()
}
なぜわからないのですか? 誰かが助けてくれることを願っています。