I have an iOS application which was build with 6.1 base sdk. Now I am moving the application to next SDK 7.0. I have a tabbar which has 5 items on it. Each tab is a navigation controller. Also, each view controller which is pushed into these navigation controllers hides the tab bar with the method
[self setHidesBottomBarWhenPushed:YES];
When I am at the second tab, i press a button and after a web connection, it pops to root view controller and updates the selectedIndex of tabbarcontroller. The main tabbar controller is accessed with its reference in appdelegate. The thing happening is when selected index is 1 and then I set it as 2 the tab bar disappears. However, when it is 2 and i set it 2 again there is no problem.
[self.application.tabBarController setSelectedIndex:2];
This problem only occurs in iOS 7 simulator. When I simulate on iOS 6 simulator it is not happening. Also my tabbar items are custom, i don't know if it has something to do with it.
What might be the problem?