iPhone应用程序(Stoaryboard)中是否有RTL支持 [英] Is there RTL support in iPhone Application (Stoaryboard)

查看:175
本文介绍了iPhone应用程序(Stoaryboard)中是否有RTL支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是iPhone应用程序的新手。我很喜欢英语和阿拉伯语文本(在应用程序开始时选择语言),但只是好奇如何将屏幕格式从LTR格式化为RTL。

I am newbie for iPhone application. I am fine with English and Arabic text (selecting language at the start of application) however just curious how to format the screen from LTR to RTL.

有没有在布局中支持RTL的iPhone故事板?

我问了一些相同的问题,我找到了答案。

I have asked somewhat same question and there I found answer.

如何将阿拉伯语文本设置为右侧,将英文文本设置为同一标签上的左侧

推荐答案

我绝对不是专家,但我在我的iOS应用程序中使用希伯来语。
iOS 6 SDK有一个叫做自动布局的东西,指南指出它让你不用担心RTL语言。

I am definetly NOT an expert, but I do use hebrew in my iOS apps. iOS 6 SDK has something called "Auto-Layout", and the guide specifies that it enables you not to worry about RTL languages.


Cocoa Auto Layout允许单个视图声明自己的首选大小,这意味着如果标签的文本发生更改,则不必指定新布局 - 例如,因为本地化,如右侧窗口所示。您甚至不必为希伯来语和阿拉伯语等语言指定新布局,其中元素本身的从左到右排序通常应该颠倒。

Cocoa Auto Layout allows individual views to declare their own preferred size, which means you don’t have to specify new layout if the label’s text changes—for example, because of localization, as illustrated in the right window. You don’t even have to specify new layout for languages like Hebrew and Arabic in which the left to right ordering of elements themselves should generally be reversed.

https:// developer。 apple.com/library/ios/#documentation/UserExperience/Conceptual/AutolayoutPG/Articles/Introduction.html

这篇关于iPhone应用程序(Stoaryboard)中是否有RTL支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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