Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change UITabBarController More button's title?

I have a Tab Bar app. The app has 8 UITabBarItems and the More button is added automatically. I want to change the title from More to something else.

I have already tried the following:

tabbarController.moreNavigationController.tabBarItem.title=@"Test";

But it still displays "More". No error. No changes.

How can I change the "More" text to another?

like image 653
tester Avatar asked Oct 12 '10 20:10

tester


2 Answers

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>
like image 81
erikprice Avatar answered Jan 21 '23 02:01

erikprice


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)

like image 24
Richard Avatar answered Jan 21 '23 01:01

Richard