Quote:
Originally Posted by erritikamathur
No, i basically have one tabbarcontroller only that is in TabbedViewController xib.I add it there because i need to enable/disable some tabs based on some property.
Each of my tabs have a single viewController class
|
Well, I would recommend creating the tab bar programatically (don't put it in the xib) and then just access the tab bar controller and disable what you need programmatically as well.
You can access each view controller that is added to a tab bar controller. You just have to learn what to do when you access it to reach your goal. I find that when you're running into a problem with IB or storyboards, you should just do it programmatically instead.
Personally, I don't have any xibs in my projects (and I don't use story boards), because I prefer to do everything with code. That way I can see where my problem is and I can have more control.
I'm not recommending you do this, but when you run into an issue pertaining to IB or storyboards, then switching the way you're going about the problem can usually help.
If you need more information, just ask.