Präsentieren Sie viewController von AppDelegate im UITabBarController-Design

Meine App wurde mit aUITabBarController und ich versuche, darüber eine Ansicht (einen Anmeldebildschirm) des App-Delegaten zu präsentieren. Wenn ich den folgenden Code verwende:

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
tabBarController = [[UITabBarController alloc] initWithNibName:@"Main_TabBarController" bundle:nil];
self.window.rootViewController = tabBarController;
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle:nil];
Login_ViewController *lvc = [storyboard instantiateViewControllerWithIdentifier:@"Login_ViewController"];

[self.window.rootViewController presentViewController:lvc animated:YES completion:nil];

Ich bekomme den FehlerWarning: Attempt to present <Login_ViewController: 0x716fac0> on <UITabBarController: 0x7165240> whose view is not in the window hierarchy! und der Bildschirm ist nur schwarz. Wie füge ich hinzu?Login_ViewController zur Fensterhierarchie?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage