I have a problem that the position of a button \ image is changed according to the language localization.

e.g. in Hebrew the alignment is right-to-left in opposite to English. this causes the buttons \ images to be positioned on the other side of the screen, in oppose to English position.

how do I disable ios from re-positioning the buttons (according to localization)?

有帮助吗?

解决方案 2

I've found a simple way for doing this:

go to the controller you want to fix it's position, and select it's constraints.

set Direction property to "Left to Right" instead of Leading to Trailing".

enter image description here

其他提示

How many languages are there for localization in your application?

If you think that there are more problems in UI then create separate .xibs file for separate localization.

Please check the link. This will help you.

https://www.clairereynaud.net/blog/getting-your-iphone-app-ready-for-localization/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top