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;
/* */

3 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
  3. It’s not that easy to remember the password in this e-world when you use various websites for different purposes. But, the password is the key to access to your account. Thanks to recovery methods, you can easily recover the password error. All you can do is, dial Bitfinex support number at 1833-228-1682 and get a variety of the solutions and remedies that help in fixing your error. Feel free to contact the team as per your urgency and requirements. Visit website :-Bitfibnex Support Number

    ReplyDelete