Search code examples
iphoneiosxcodelocalizationxcode4

Localization does not work in one nib


I have simple app with some nib files. Some of them (with TabBarController or NavigationController) are localized with Xcode. Strings and almost every nib works like a charm when try to change language. But there is one nib which do not accept my localized version of itself. I done the localization the same way as the rest. Even try to clean the project and recompile it. But still when launching the app in specific language, everything is translated except this one nib. It's unfortunately the first screen seen by user. When app starts it runs this nib as a modal controller and show it on the top of the main TabBarController.

There are 4 custom (custom set in Xcode not by code) buttons in the nib file and in viewDidLoad I only change the font to custom one (I've tried to remove this one also but did not help).

Any ideas what I'm doing wrong? Thx


Solution

  • I've found that after newly localizing a file that wasn't previously localized, in addition to cleaning and rebuilding, I have to delete the app from the simulator or device and do a clean install. This is only for XCode-deployed builds; installing from an ipa doesn't require a clean install.