删除 more 里面的 Edit
customizableViewControllers
The subset of view controllers managed by this tab bar controller that can be customized.
@property(nonatomic, copy) NSArray *customizableViewControllers
Discussion
This property controls which items in the tab bar can be rearranged by the user. When the user taps the More item on the tab bar view, a custom interface appears displaying any items that did not fit on the main tab bar. This interface also contains an Edit button that allows the user to rearrange the items. Only the items whose associated view controllers are in this array can be rearranged from this interface. If the array is empty or the value of this property is nil, the tab bar does not allow any items to be rearranged.
Changing the value of the viewControllers property (either directly or using the setViewControllers:animated: method) also changes the value of this property. When first assigned to the tab bar controller, all view controllers are customizable by default.
Availability
Available in iOS 2.0 and later.
See Also
@property moreNavigationController
Declared In
UITabBarController.h
self.tabBarController.customizableViewControllers = nil;
customizableViewControllers
The subset of view controllers managed by this tab bar controller that can be customized.
@property(nonatomic, copy) NSArray *customizableViewControllers
Discussion
This property controls which items in the tab bar can be rearranged by the user. When the user taps the More item on the tab bar view, a custom interface appears displaying any items that did not fit on the main tab bar. This interface also contains an Edit button that allows the user to rearrange the items. Only the items whose associated view controllers are in this array can be rearranged from this interface. If the array is empty or the value of this property is nil, the tab bar does not allow any items to be rearranged.
Changing the value of the viewControllers property (either directly or using the setViewControllers:animated: method) also changes the value of this property. When first assigned to the tab bar controller, all view controllers are customizable by default.
Availability
Available in iOS 2.0 and later.
See Also
@property moreNavigationController
Declared In
UITabBarController.h
本文介绍如何通过设置UITabBarController的customizableViewControllers属性来允许或禁止用户重新排列Tab Bar中的项目。当用户点击Tab Bar上的更多按钮时,可以显示未放置在主Tab Bar中的项,并允许用户编辑这些项的位置。
1048

被折叠的 条评论
为什么被折叠?



