禁用自动布局本地化行为(RTL - 从右到左的行为) [英] Disable Autolayout Localization Behavior (RTL - Right To Left Behavior )

查看:392
本文介绍了禁用自动布局本地化行为(RTL - 从右到左的行为)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程式以英文和阿拉伯文进行本地化。

My application is localized in both English and Arabic.

不幸的是,有时候不需要进行本地化的自动布局行为。通过这个,我的意思是扭转前面和后面的空格。我想重写这个行为。

Unfortunately, sometimes the autolayout behavior for localization is not required. By that, I mean reversing the leading and trailing spaces. I want to override this behavior. Is there any way to do that?

推荐答案

使领导行为总是如左(和总是像右一样),即make

To make leading act always as left (and trailing always like right), i.e. make it language independent, you can remove checkmark on "Respect language direction" on all constrains.

您可以在属性检查器中的第一项下的约束设置中找到此复选标记,

You can find this checkmark in constrain settings in the Attributes inspector under "First Item" button.

这篇关于禁用自动布局本地化行为(RTL - 从右到左的行为)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆