私はプログラムでストーリーボードに電話をかけようとしています。 マイストーリーボードの構成は次のとおりです。プログラムでデリゲートでストーリーボードを呼び出す
[ナビゲーションコントローラ] - > [MainMenuView] - > [たDetailsView]
"メインメニュー" の識別子が[MainMenuView]
にi」は、問題を置きました。 m havingは空白を示す画面です。私は何をする必要がありますか?
ありがとうございました。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
MainMenuView *rootViewController = [storyboard instantiateViewControllerWithIdentifier:@"MainMenu"];
return YES
}
私はそれを設定しているが、それはまだ空白 – RockBaby
@RockBaby:AppDelegateの 'window'プロパティがまだ設定されていない、あなたはnilをメッセージングています。 didFinishでこれを最初に行います: 'self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];' – Josh