I recently turned to the same issue. However, the solution provided did not help me.
The reason was because I used a “push” segue to display my login controller (which is built into the navigation controller). Changing the segue style from "push" to "modal" did the trick for me. Apparently, it is not possible to initiate a “push” segue from within the tab bar controller, but only from the navigation controller.
In addition, I did not put the line
[self performSegueWithIdentifier:@"LoginSegue sender:self]
in the didFinishLaunchingWithOptions:didFinishLaunchingWithOptions: delegate method, but rather in the viewDidAppear: method. For this, I do not need the following line of code:
[self.window makeKeyAndVisible]
Hope this is helpful to others.
source share