iphone - How to disable the edit button that appears in the more section of a UITabBarController? -
In my application (tab bar application based on the XCode template) I have a list of different classes to use a UITabBarController Users who can access to display
By default, the UITabBarController displays a 'more' button in the tab bar, when there are more than 5 items. In addition, it allows the user to select items that appear in the tab bar.
Currently, I can not save and load the status of the tab bar controller, so I want to deactivate the 'Edit' button.
Is there any way Uaitibibiar controllers' More 'edit' bar that appears on the navigation controller button disable / hide?
I tried:
tabbar controller. More innovation controllers navigation bar. Capiitim Rightbartenim = zero; and
tabbar controller. More innovation controllers navigation bar. Capiitim Rightbartime Competent = no; But they do not work.
A representative of Be moreNavigationController (This is a UINavigationController) and add this :
- (minus) navigationController: (UINavigationController *) navigationController willShowViewController: (UIViewController *) ViewController animated: (BOOL) animated {UINavigationBar * morenavbar = navigationController.navigationBar; UINavigationItem * morenavitem = morenavbar.topItem; / * We do not need the edit button in more screens. * / Morenavitem.rightBarButtonItem = Zero; } By Now edit will not have an important thing to consider is that after the controller producing visible button does not appear, but before displaying the scene, and we are at the moment quietly should be and when is going to appear on the controller screen, we will exclude the button so that it will not get a chance to make it again. :)
Comments
Post a Comment