删除 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

本文深入探讨了iOS开发中如何通过编辑TabBar控制器的customizableViewControllers属性来实现TabBar的自定义与管理。详细解释了如何控制TabBar中哪些项可以被用户重新排列,以及如何通过属性的设置来启用或禁用TabBar的重新排列功能。重点介绍了iOS 2.0及之后版本中这一功能的可用性和实现细节。
1万+

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



