• <i id='lXXba'><tr id='lXXba'><dt id='lXXba'><q id='lXXba'><span id='lXXba'><b id='lXXba'><form id='lXXba'><ins id='lXXba'></ins><ul id='lXXba'></ul><sub id='lXXba'></sub></form><legend id='lXXba'></legend><bdo id='lXXba'><pre id='lXXba'><center id='lXXba'></center></pre></bdo></b><th id='lXXba'></th></span></q></dt></tr></i><div id='lXXba'><tfoot id='lXXba'></tfoot><dl id='lXXba'><fieldset id='lXXba'></fieldset></dl></div>

    1. <small id='lXXba'></small><noframes id='lXXba'>

      <tfoot id='lXXba'></tfoot>

        <bdo id='lXXba'></bdo><ul id='lXXba'></ul>

        <legend id='lXXba'><style id='lXXba'><dir id='lXXba'><q id='lXXba'></q></dir></style></legend>
      1. 如何检查 iPhone 的语言设置?

        How to check the iPhone language settings?(如何检查 iPhone 的语言设置?)
        <legend id='UT4Fm'><style id='UT4Fm'><dir id='UT4Fm'><q id='UT4Fm'></q></dir></style></legend>
        • <i id='UT4Fm'><tr id='UT4Fm'><dt id='UT4Fm'><q id='UT4Fm'><span id='UT4Fm'><b id='UT4Fm'><form id='UT4Fm'><ins id='UT4Fm'></ins><ul id='UT4Fm'></ul><sub id='UT4Fm'></sub></form><legend id='UT4Fm'></legend><bdo id='UT4Fm'><pre id='UT4Fm'><center id='UT4Fm'></center></pre></bdo></b><th id='UT4Fm'></th></span></q></dt></tr></i><div id='UT4Fm'><tfoot id='UT4Fm'></tfoot><dl id='UT4Fm'><fieldset id='UT4Fm'></fieldset></dl></div>

            <small id='UT4Fm'></small><noframes id='UT4Fm'>

              <tbody id='UT4Fm'></tbody>
              <bdo id='UT4Fm'></bdo><ul id='UT4Fm'></ul>

                1. <tfoot id='UT4Fm'></tfoot>
                2. 本文介绍了如何检查 iPhone 的语言设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在本地化我的应用程序 cocos2d,因此没有 nib 文件,我正在本地化一个标签,这很好,但想检查设备语言以为每种语言设置准确的字体和字体大小.简而言之,我想这样做:

                  I'm localizing my app which is cocos2d so there are no nib files, I'm localizing a label which is fine but want to check the device language to set an exact font and font size for each language. In short I want to do it as the following:

                  If (device.language == en) {
                  Set font to "fontname" and "fontsize" to x;
                  } else {
                  set it to "another font name" and font size to y;
                  }
                  

                  如何检查设备语言/设置是否设置为准确的语言?

                  How to check that the device language/settings is set to an exact language?

                  推荐答案

                  你可以使用:

                  [[NSLocale preferredLanguages] objectAtIndex:0]
                  

                  这将返回一个语言标签,如en"或ja".

                  This will return a language tag like "en" or "ja".

                  这篇关于如何检查 iPhone 的语言设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                  Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                  Resume game cocos2d(恢复游戏 cocos2d)
                  Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))
                  Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)
                  Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)

                3. <tfoot id='LCEYw'></tfoot>

                  • <bdo id='LCEYw'></bdo><ul id='LCEYw'></ul>
                    1. <small id='LCEYw'></small><noframes id='LCEYw'>

                          <tbody id='LCEYw'></tbody>
                          1. <legend id='LCEYw'><style id='LCEYw'><dir id='LCEYw'><q id='LCEYw'></q></dir></style></legend>
                            <i id='LCEYw'><tr id='LCEYw'><dt id='LCEYw'><q id='LCEYw'><span id='LCEYw'><b id='LCEYw'><form id='LCEYw'><ins id='LCEYw'></ins><ul id='LCEYw'></ul><sub id='LCEYw'></sub></form><legend id='LCEYw'></legend><bdo id='LCEYw'><pre id='LCEYw'><center id='LCEYw'></center></pre></bdo></b><th id='LCEYw'></th></span></q></dt></tr></i><div id='LCEYw'><tfoot id='LCEYw'></tfoot><dl id='LCEYw'><fieldset id='LCEYw'></fieldset></dl></div>