I have two small problems related, and I think the second is because of the first.
The first is that I have several UIButtons in my application, but there is no text, only background images. These images are localized in 6 languages. The problem is that when editing the views in the storyboard, I see that each button loads the image randomly (sometimes in English, others in Spanish, others in Russian ...). It should be all in English, as I have a key: CFBundleDevelopmentRegion en
See image. I think everything is set up correctly. Do you see something strange? Perhaps this is an Xcode error.



The second problem is that I use automatic layouts. The reason is that the images in these buttons have different sizes depending on the language. Thus, as the size of the intrinsec content changes, the width of the button changes (since there is no limit to the width). The problem is that if I select the button, click the "Size for setting content" button to remove the width limit, it seems to work fine (when I run the application in different languages, the width changes automatically depending on the language), but when the storyboard loads an image in another language (first problem), it seems that the automatic layout automatically adds a width limit, and then when I run the application again, the button width is incorrect in most languages. Do you even understand what is happening?
A very dirty workaround could be to create a UIButton descendant that removes any load with a width limit. I don't know if this works.
I really appreciate your ideas on these issues.
source share