- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
{
}
Basically this is the requirement. If an item is placed I should
do this:
self.navigationItem.leftBarButtonItem=self.Reload;
I need to know that user is selecting the right item (#2). The number may change but it should correspond to the one whose object is of type BGCRListOrMapController
You can get the selectedViewController and then test it
Don’t forget to set yourself as the
UITabBarController‘s delegate