Default Xib get loaded instead of desired Xib?
In my Application I enabled the Localization for spanish Language . Sources like strings, Plist, Images etc are working fine without any problem except the xib files.
Instead of the xib of selected Language(spanish in my example) the View controller load default xib file
below is my bundle
And the screen shots of english and spanish Xibs respectively
As seen in the above images I have translated the texts(in xib) into spanish for spanish xib But the viewcontroller is loading same xib(default one) for both language. Help me to Show the desired xib.
Note:- The Save Button on the top left corner change it's text to the selected language(I set the identifier type of that UIBarButtonItem to "save")
I think u have to change the language of your ipad or ur iPhone.
Your app should dettect that language and display the desired xib, on "EN" or "ES" folders.
The default folder that ios will use, is "EN" (English), so u can try to swap all files on "EN" to "ES" language.
Other opcion, is to use same xib for both languages, and use NSLocalizedString instead making 2 xibs.