In my app I use this code to update notify counter:
[[[[[self tabBarController] tabBar] items]
objectAtIndex:3] setBadgeValue:unreadMsg];
Since the user can change the order of tabs (from "Other" menu managed from iOS), how can I find the new index to use for objectAtIndex
?
[UPDATE]: - The Green Circle: is my TabBar Controller - The Red Circle: is the tab bar item that I want update - The Blue circle is where I want to check and update the badge value...
Anna I hope that is a little bit clear now.... And Thanks.