Disable Tabbar Items

If you need to disable a specific UITabBarController Item, enter the following Code wherever you need it to be set.

int i = requiredTabBar; //First item on the left = 0

[[[[[self tabBarController] viewControllers] objectAtIndex:i] tabBarItem] setEnabled:false];

to re enable, just change …setEnabled:true];

© MR-Apps 2011-2013