I'm trying a storyboard now , and I have a UITableViewController as my rootViewController . Now in some cases, if my user is not logged in, I want another UIViewController to appear first. I understand that I can execute segue , but, in my opinion, TableView will still try to load, which is not what I want if they do not provide information about this UIViewController m in order to try to appear first (if, for example, the key does not exist in NSUserDefaults ).
So my question is: is there a simple solution that I can add to my appDelegate to " override " the rootViewController from the storyboard, or appear in front of it, and then just click on the abandon this rootViewController in the storyboard?
Thanks!
source share