This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Description
Hi,
first of all thanks for awesome example :)
i want to open the viewcontroller which is i first appear click on Tab.
I have 6 tab bar items.
Suppose I click on item 1, then the root view controller for that item is being shown to me. This root view contains a table with 5 cells. If I click on a row, then a new view is pushed onto the navigation stack. Now, this pushed view has a button clicking on which will again push a new view controller. I have 4 such view controllers which are getting pushed one after the other on navigation stack.
Now, lets say I am on 3rd view in navigation stack and then, after i tap on tabbaritem then it is not apper my rootviewcontroller .
using this method
- (BOOL)tabBarController:(JBTabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController
{
if ([[tabBarController viewControllers] objectAtIndex:tabBarController.selectedIndex] == viewController)
{
return NO;
}
else
{
return YES;
}
}