I am writing an iOS application using storyboard.
I created ViewControllerA
, ViewControllerB
and then embedded ViewControllerA
in a UINavigationController
on the storyboard.
The app will show ViewControllerA
when it is first launched, otherwise it will show ViewControllerB
.
I added launch history check code successfully. I am going to set the UINavigationController
as the window's rootViewController
in the didFinishLaunchingWithOptions
method.
The problem is that I cannot get the UINavigationController
from the storyboard, so I can't push ViewControllerA
and ViewControllerB
based on my condition.