RTL (Right-to-left) via auto layout broken on iOS 6.1 / iOS 7.0?

不羁岁月 提交于 2019-12-24 01:25:33

问题


can it be that the RTL concept using auto layout is not working on iOS 6.1 and iOS 7.0 devices (also simulator) anymore? It is working for the iOS 6.0 (have only the simulator to check with) - so when setting the device language to Arabic, it mirrors the UI as expected for the 6.0 version.

(The Direction for the horizontal constraint is set to: "Leading to Trailing")

Have googled this issue for days, but without success...

Thanks for any help!


回答1:


Ok. Seems that iOS 6.1+ devices (simulator) require having the locale (ar) having defined - adding it to the project will solve this problem.



来源:https://stackoverflow.com/questions/20427583/rtl-right-to-left-via-auto-layout-broken-on-ios-6-1-ios-7-0

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