I’m facing this problem for a couple of months and i don’t know what is the best solution to solve it.The problem is,i need to load a XIB before my UITabBar shows up,more clearly,i have my first view which is to the user login(NO TABBAR SHOULD BE DISPLAYED),when user login,the app verify the information and after should load the view with a UITabBarController,but every time i try do that without presenting the login view modally,both of the views are displayed,the login view and the tabbar view.
Share
You could set first the loginViewController as
rootViewControllerof your mainwindow, then after the user is logged in, set the tabBarController asrootViewController.Something like this (assume your loginViewController is
viewController1):Then from the loginViewController call the method
setTabBarof the appDelegate.