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

查看:16
本文介绍了禁用自动布局本地化行为(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?

推荐答案

为了让前导总是在左边(并且尾随总是像右),即使其与语言无关,您可以取消所有尊重语言方向"的复选标记约束.

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天全站免登陆