Is there RTL support in iPhone Application (Stoaryboard) [duplicate]

别来无恙 提交于 2019-12-08 05:45:59

问题


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.

Is there support in iPhone storyboard for RTL in layout?


Answer

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

How to set Arabic text to right and English text to left on same label


回答1:


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 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




回答2:


Alternatively, if you can view a language in a browser on the iphone you can try using a technology like phonegap.



来源:https://stackoverflow.com/questions/14304459/is-there-rtl-support-in-iphone-application-stoaryboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!