سؤال

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