如何更改“更多"的文本标签栏基础iphone应用程序中的栏项目 [英] How to change the text of "More" bar item in a tab bar base iphone application

查看:50
本文介绍了如何更改“更多"的文本标签栏基础iphone应用程序中的栏项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个问题,就像在其他选项卡栏项目上一样,我找不到在选项卡栏上更改​​更多"栏项目的文本的方法.搜索论坛后,我只能找到一种方法来更改由更多"按钮推动的更多"视图的标题.谁能帮我吗?预先感谢.

I faced a problem that I can not find a way to change the text of "More" bar item in the tab bar, just like what I can do on other tab bar items. After searching the forum, I only find a way to change the title of the "More" view pushed by "More" button. Can anyone help me out? Thanks in advance.

UINavigationBar *moreNavigationBar = tabBarController.moreNavigationController.navigationBar;
moreNavigationBar.topItem.title = @"More Features";

推荐答案

如果您使用默认的更多"标签,则将无法进行更改.Apple在后台处理此选项卡的所有代码.它旨在使用户能够在标签栏控制器中无法显示太多标签时重新排列标签的顺序.

If you are using the default 'More' tab, you won't be able to change that. Apple handles all of the code for this tab behind the scenes. It is designed to give the user the ability to rearrange the order of tabs when you have too many to show in your tab bar controller.

我的建议是不要与之抗争并尝试覆盖更多"功能.如果您想要一个名为更多"的选项卡,但想自己处理该功能,则不要使用Apple内置的更多"选项卡,只需找到合适的图标并自己处理即可.希望这会有所帮助.

My suggestion would be to not fight this and try to override the 'More' functionality. If you would like a tab called 'More', but want to handle that functionality yourself, then don't use Apple's built in More tab, just find a suitable icon and handle things yourself. Hope this helps.

这篇关于如何更改“更多"的文本标签栏基础iphone应用程序中的栏项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆