Disable Autolayout Localization Behavior (RTL - Right To Left Behavior )

前端 未结 4 867
予麋鹿
予麋鹿 2020-12-08 14:19

My application is localized in both English and Arabic.

Unfortunately, sometimes the autolayout behavior for localization is not required. By that, I mean reversing

4条回答
  •  抹茶落季
    2020-12-08 15:02

    as in @Pavel answer, you should turn off 'Respect language direction' property. if you have lots of constraints, you can open xib or storyboard file in XML view and replace all 'leading' values with 'left' and all 'trailing' values with 'right' and you're done.

提交回复
热议问题