Philippe Renaud
asked on
UITabBar Item selectedItem
Hello EE,
In my Xcode application, I have a UITabBar with 2 items.
I know that if I have this:
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarIte m *)item;
{
NSLog(@"Test");
}
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.
In my Xcode application, I have a UITabBar with 2 items.
I know that if I have this:
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarIte
{
NSLog(@"Test");
}
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER