I\'m trying to select no tabs at all in my application. At first the first tab is selected, but I\'d like to deselect it so no tabs at all would be selected.
Don\'t
I finally managed to do this using the following code:
DefaultView *defaultView = [[DefaultView alloc]initWithNibName:@"DefaultView" bundle:[NSBundle mainBundle]];
[self.tabBarController setSelectedViewController:nil];
[self.tabBarController setSelectedViewController:defaultView];
Note that just doing [self.tabBarController setSelectedViewController:nil];
won't do anything. You HAVE TO specify a view controller. This view Controller will be displayed with no tabBar icon selected. Upon selecting the other TabBar options, the defaultView will disappear and the required view will be loaded.