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

EditViewController.xib(English)

EditViewController.xib(Spanish)

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")

Answers


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.


Need Your Help

Making a non-thread menu - SurfaceView Android App

android exception null drawing surfaceview

I wrote a game and I'm trying to make it better and get rid of the bugs, and I have both the menu and the game state itself relying on a thread, but for menu I locked drawing so that it drawes each

Get value of ASP.NET TextBox on Async Postback

asp.net asynchronous textbox updatepanel postback

I'm using an UpdatePanel to asynchronously update a control on my ASP.NET page. During the postback, I'd like to get the value of a TextBox control. The value I get, however, is always the origina...