I have a tabBarController
with three items
to different viewControllers
. There are four targets
in my projects and for one of the targets
I would like to add a new tabBar
item
that goes to newViewController
. The item
shouldn't show up when I run the other targets
.
First I thought it was as easy as setting the newViewController
to only be available to the specific target
that I wanted, and that it would not show up in the tabBar
if I ran the project under a different target
. But the app crashed.
Is there a way to hide/show the tabBar
item
based on target
without using the #if target
code. We try to get away from that in the project. It would be nice to just do it in the storyBoard
if that's possible. If not, then there is a custom tabBar
class available. Let me know if you need to see some code from it.