Reputation: 6547
within my App it should be forbidden to edit (customize) the TabBar. This means there should be no edit button and no other possibility to change the order of the items.
(this is not my decision, the boss wants it that way :) )
I can't find a property to do this - so is this possible after all?
cheers
Upvotes: 1
Views: 812
Reputation: 2183
the best way that worked for me is to set the 'customizableViewControllers' of UITabBarcontroller to nil,so this will not show 'edit' button over more tab bar item.
Ex.
self.tabBarController.customizableViewControllers = nil;
Upvotes: 3
Reputation:
you can use
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController
{
tabBarController.NaviController.navigationBar.topItem.rightBarButtonItem = nil;
}
Upvotes: 1