1

I'm writing app that supports right-to-left languages. To test the app in simulator I set up "Right to Left Pseudolanguage" in Schema Configuration in xCode:

enter image description here

When run the app from xCode everything goes as expected and system draw ui elemnts in right-to-left manner. The problem is when I try run app from AppCode, because it seems to ignore this settings and app looks like as common.

After every change in AppCode I have to switch to xCode to run simulator. It's annoying. Can somebody help me?

klimat
  • 24,711
  • 7
  • 63
  • 70

2 Answers2

3

If you can pass arguments to the app on launch in AppCode you need to specify:

-NSDoubleLocalizedStrings YES
-AppleTextDirection YES
-NSForceRightToLeftWritingDirection YES

This should give you the desired Right to Left Pseudolanguage effect.

Gary Riches
  • 2,847
  • 1
  • 22
  • 19
3

I've debugged which parameters are given to input when xCode start the process in simulator. The final answer should be:

-AppleTextDirection YES 
-NSForceRightToLeftWritingDirection YES

Don't forget about dash in the beginning of the parameter name.

klimat
  • 24,711
  • 7
  • 63
  • 70