I am trying to access the _tabBar instance from a UITabBarController. I am trying to hide the tabBar in certain situations, for this, I added an extension to UITabBarController, where I can access the _tabBar instance, and call the setHidden message. This works when compiling for the simulator, but when I compile for the device, I get the following error
"_OBJC_IVAR_$_UITabBarController._tabBar", referenced from: _OBJC_IVAR_$_UITabBarController._tabBar$non_lazy_ptr in UITabBarController+TabBar.o
What do I need to add to my compiler flags? and why does it works when compiling for the simulator.
Thanks in advance.