禁用自动布局本地化行为(RTL - 从右到左行为)

Disable Autolayout Localization Behavior (RTL - Right To Left Behavior )(禁用自动布局本地化行为(RTL - 从右到左行为))
本文介绍了禁用自动布局本地化行为(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 - 从右到左行为)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Why local notification is not firing for UNCalendarNotificationTrigger(为什么没有为UNCalendarNotificationTrigger触发本地通知)
iOS VoiceOver functionality changes with Bundle Identifier(IOS画外音功能随捆绑包标识符而变化)
tabbar middle tab out of tabbar corner(选项卡栏中间的选项卡角外)
Pushing UIViewController above UITabBar(将UIView控制器推送到UITabBar上方)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Get an event when UIBarButtonItem menu is displayed(显示UIBarButtonItem菜单时获取事件)