I have a UITabBarController
based application. I want to launch a configuration guide - a series of views - the first time the application is launched. That of course have nothing to do with with the normal tab navigation and I want the configuration views to cover the entire screen.
I have a class that supports the UIApplicationDelegate
protocol and I tried to launch my configuration view from the application:didFinishLaunchingWithOptions
method with the following code:
UIViewController *vc = [[self.mainViewController storyboard] instantiateViewControllerWithIdentifier:@"StartupWelcomeViewController"];
[self.mainViewController presentModalViewController:vc animated:YES];
(the mainViewController is a reference to the UITabBarController)
Apparently application:didFinishLaunchingWithOptions
is called before the viewDidLoad
for the tab bar views. If I move my code above to a function that is called after the viewDidLoad
it works.
I cannot find a method in the UIApplicationDelegate
protocol or the UITabBarController
class that is called after the viewDidLoad
methods in the tab bar views.
Where is a good place to launch my configuration guide and how do I do it?