简体   繁体   English

UITabBarController.moreNavigationController禁用项目

[英]UITabBarController.moreNavigationController disable items

I am using UITabBarController for my 7 viewcontorller. 我正在为我的7 viewcontorller使用UITabBarController。 UITabBarController is showing by default more button. UITabBarController默认显示更多按钮。 When I pressed more button it will show me table view which contains 3 more tabbar items in list. 当我按下更多按钮时,它将显示表格视图,其中包含列表中另外3个选项卡项。 I would like to disable one items from tableview list. 我想禁用tableview列表中的一项。 Could you please help me how can I disable only single item from tableview list? 您能帮我怎样禁用tableview列表中的单个项目?

thanks Manoj 谢谢Manoj

Have a look at the documentation for the cusomizableViewControllers property of UITabBarController. 请查看UITabBarController的cusomizableViewControllers属性的文档。 This property is an array that contains the subset of all your tab view controllers that are 'customizable' ie that can be moved around and added to the tab bar. 此属性是一个数组,其中包含所有可“自定义”的选项卡视图控制器的子集,即可以移动并添加到选项卡栏的子集。

Remove a view controller from this array to disable customization. 从此阵列中删除视图控制器以禁用自定义。

You can't disable / enable items from the "More" tab bar item. 您无法从“更多”标签栏项目中禁用/启用项目。 You can remove one or many, as you want, though, by changing the array in the UITabBar's items property. 不过,您可以通过更改UITabBar的items属性中的数组来删除一个或多个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM