UITabBar Item selectedItem
Posted on 2011-09-04
In my Xcode application, I have a UITabBar with 2 items.
I know that if I have this:
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item;
it will be called each time i touch an item. Even if its already selected.
I need to push a ViewController to the screen when touching item index 0.
but I dont want to call that viewController if its already selected... how can I skip that if already selected? I tried some code but didnt work well.