I am working on an iOS App that have an UITabBarController for show a TabBar. In some where, I present a modalView full screen that hides the tabBar.
I want to detect when my tabBar is visible for the user. There is any way to check automatically when de tabBar is visible or not?
I tried that:
But it really don't work because the tabBar is not really hidden.
if ([[[appdelegate tabBarController] tabBar] isHidden])
{
NSLog(@"tabBar IS HIDDEN");
}
else
{
NSLog(@"tabBar IS VISIBLE");
}
I write this code in a BaseViewController which is super class of my modal view and the other views of my project.
Thanks.