How to change UITabBarController More button's title?

▼魔方 西西 提交于 2019-11-30 14:36:26

The label under the "More" button is localized for you based on the user's current Locale as specified in their Settings. However, you have to declare your support for that locale in your app's Info.plist.

Add the CFBundleLocalizations key to your application's Info.plist and set its value to an array whose values are the locales for which you want the app to automatically localize system labels. For example, if you want to localize for both English and Japanese, you would add the following entry to the Info.plist:

<key>CFBundleLocalizations</key>
<array>
    <string>en</string>
    <string>ja</string>
</array>

I had the same problem - just go to your Info.plist file, and change the "Localization native development region" key to your language. The "more" button title changes automatically. This also auto-changes some other system button titles (eg the "edit" button in the icon order customization toolbar)

From the documentation:

"The title and image of system tab bar items cannot be changed."

Try this:

tabBarController.moreNavigationController.navigationBar.topItem.title = @"new title";

works for me

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!