I have a UITabBar where the user is able to select one of five items, when one of the items has been selected I then load a subview. The only thing is, is that the tabBar item is staying selected when I would like it to select (turn blue as the user touches it) then deselect straight away.
Effectively I have set up the different selections like so.
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
{
switch (item.tag) {
case 0: //New Code
{
}
//case 1, 2, 3, 4 etc...
}
If I then add something like this into one of the case's and the user selects a TabBar item, everything works fine but there is never a blue selection.
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
{
//case 1, 2
}
case 3: //New Code
{
[tabBar setSelectedItem:button3];
[tabBar setSelectedItem:nil];
}
//case 4 etc...
}
So what I was hoping to get some help with is how to get the tabbar button to select then deselect straight away, much like you how see this happen on a UIButton.
any help would be greatly appreciated.