Disable Autolayout Localization Behavior (RTL - Right To Left Behavior )(禁用自动布局本地化行为(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 - 从右到左行为)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:禁用自动布局本地化行为(RTL - 从右到左行为)
基础教程推荐
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
