I'm using a UITabBar without a controller. I want to remove tabs from the UITabBar if certain conditions are met. For example, my UITabBar has 4 tabs set up in interface builder. If the scores module is not enabled at compile time, it should remove the scores tab.
// defined in IB
#define kTabScores 1
UITabBar *_tabBar;
// in viewDidLoad
#if !INCLUDE_SCORES_SUPPORT
// this doesn't seem to work
[[_tabBar viewWithTag:kTagScores] removeFromSuperview];
#endif