Search code examples
segueuitabbaruitabbaritemios8.1tint

How do I deselect a tabBarItem pre segue


I have implemented a tabBar with two tabBarItems.

Once presssed the app segues to the new VC, however when I go back to the main VC the tabBarItem is still highlighted as if it has just been pressed.

How do I stop this from happening?


Solution

  • I just used [tabBarHome setSelectedItem:nil]; in the same block of code that launched the segue, so when I came back to the main VC it wasn't highlighted.

    I realize a tabBar is meant to be used in conjunction with a tabBarController.