I do this and want to open the tab bar controller from the login page if it is the first time, and if it is already connected, go through LoginPage and open the tab bar after Spalsh
means that if the user has landed in the application, then it should be so 1. Splash 2. Login page 3. If the entry to the control panel of the "Control Panel" tab with 4 tabs is successfully opened
if the user has already registered 1. Splash 2. Tab bar controller

I am trying to open a Tab panel controller through the following code in the ViewDidLoad method
UITabBarController *tbc = [self.storyboard instantiateViewControllerWithIdentifier:@"TripMapViewer"]; tbc.selectedIndex=0; [self presentViewController:tbc animated:YES completion:nil];
but he gives an error
2014-02-06 19: 55: 43.849 ProjNew [1065: 907] - [TripMapViewer setSelectedIndex:]: unrecognized selector sent to instance 0x1d5600b0
and if I remove tbc.selectedIndex = 0; , it will not do anything and will remain on the Splash screen, like this
UITabBarController *lbc = [self.storyboard instantiateViewControllerWithIdentifier:@"TripMapViewer"]; [self presentViewController:lbc animated:YES completion:nil];
suggest how to open the tab bar from View Controller
ios objective-c iphone ipad xcode5
Azhar
source share