I have a tab bar based app.
I have selected/de-selected image set for every tab bar item.
On first tab I have a button that opens up modalviewcontroller.
At the time when modal view is activated, my tab bar item state is selected and has selection image.
when modal view pops up , selection image is still there. But when I dismiss modal view, I want selction image of tab bar item changed to some other image.
How do I change this image on modal view dismiss?
I'm trying to so following, but it doesn't work:
[[[self.tabBarController.tabBar items] objectAtIndex:0 ] setSelectionIndicatorImage:[UIImage imageNamed: @"abc.png"] ];
Please help.
Thanks in advance.