using Interface Builder and Storyboared, I built UITabBarController with 3 views. By default, when user open application, first View displayed, but under certain criteria, I need 2nd view to get displayed.
Hence, from AppDelgate didFinishLaunchingWithOptions method, i need to display -present – the 2nd view controller;
notice, I tried to do something like this:
[myfirstcontrooler presentViewController:mycontrooler animated:YES completion: nil];
but I got
Application tried to present modally an active controller
error & crash.
Thanks.
Try it with