I have an application with a Tab Bar Controller and a lot of UIViewController, I defined the interface on storyboard, I want that when the user lunch the application (When application loaded) all ControllerViews are loaded, and not when the user select a tab (My UIViewController are complex and it take little time to load)
Share
The answer you posted is incorrect; You should not call
-loadViewmanually. From the documentation:So you should instead simply access the
viewproperty. Your modified code would then be:Also note that this work should probably not take place inside your
-application:didFinishLaunchingWithOptions:method, because iOS will terminate your app if this method does not return in 5 seconds. You can schedule this task on the next runloop iteration like this: