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

Open the View controller when select the tab  #8

@rushabh0999

Description

@rushabh0999

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;
    }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions