Hello, I would like to know how can I identify the items in the tab bar?
I have a tabBarController that contain NAvigationController like this:
NSMutableArray *localViewControllersArray = [[NSMutableArray alloc] initWithCapacity:6];
Each navigationController is inside this array.
I manage the actions in each tab bar item with the method:
- tabBarController:(UITabBarController*)tabBarController didSelectViewController:(UIViewController*)viewController
And I in this method, i.e.:
if (viewController == [self.tabBarController.viewControllers objectAtIndex:0])
Like this i identify wich tab bar item i click on.
BUT the problem is that you can edit the Tabbar in the iphone screen (because there are 6 viewControllers in the array that initialize the tabbar) and then, the way that i'm using is incorrect,because i can change the position of the viewcontrollers in the tabbar when i use this edit tool.
Thanks