Sunday, July 25, 2010

Disable Edit Button on "More" tab of UITabBarController using Monotouch

Today I will show you how to disable the Edit button on "More" tab of UITabBarController.
Following screen shot displays a tab bar controller displaying "More" tab with 2 items and an edit button on top right side of navigation bar.

Clicking the button brings up a configure view where all the tabs are displayed and can be moved around as shown below.

Adding the following code in ViewDidLoad() method  of your UITabBarController class removes the items from the "Configure" view. 
/* */
this.CustomizableViewControllers = null;
/* */

Adding the following code in ViewDidLoad() method  of your UITabBarController class disables the "Edit" button.
/* */
this.MoreNavigationController.NavigationBar.TopItem.RightBarButtonItem.Enabled = false;
/* */

2 comments:

  1. This database is compatible with monotouch:
    http://www.kellermansoftware.com/p-43-ninja-net-database-pro.aspx

    ReplyDelete
  2. This database is compatible with monotouch:
    http://www.kellermansoftware.com/p-43-ninja-net-database-pro.aspx

    ReplyDelete