0

I'm working on a internationalization app, and the problem is:

If using english environment then I can set font like "Helvetica"

If using Chinese environment then I can set Chinese font.

Is there a way auto switch font depends on which language env is?

For example:

I prepare two fonts: en_font and cn_font, judge iOS language env, if language is english then use en_font otherwise cn_font

Jason Zhao
  • 1,278
  • 4
  • 19
  • 36

1 Answers1

1

Check out:

[UITextInputMode currentInputMode]. primaryLanguage
Rikkles
  • 3,372
  • 1
  • 18
  • 24
  • Sorry mate, [UITextInputMode currentInputMode]. primaryLanguage result will change if input keyboard change. I need a way to find out which language the iOS OS is using. Not keyboard type. – Jason Zhao Oct 11 '12 at 03:40
  • http://stackoverflow.com/questions/3910244/getting-current-device-language-in-ios this is the answer, thanks buddy! – Jason Zhao Oct 11 '12 at 04:18