<small id='8NaM1'></small><noframes id='8NaM1'>

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

      1. <tfoot id='8NaM1'></tfoot>

        <legend id='8NaM1'><style id='8NaM1'><dir id='8NaM1'><q id='8NaM1'></q></dir></style></legend>

        如何在 iOS 4 中更改 iPhone 应用程序的首选语言

        How to change the preferred language of an iPhone app in iOS 4(如何在 iOS 4 中更改 iPhone 应用程序的首选语言)
        <i id='sqKV2'><tr id='sqKV2'><dt id='sqKV2'><q id='sqKV2'><span id='sqKV2'><b id='sqKV2'><form id='sqKV2'><ins id='sqKV2'></ins><ul id='sqKV2'></ul><sub id='sqKV2'></sub></form><legend id='sqKV2'></legend><bdo id='sqKV2'><pre id='sqKV2'><center id='sqKV2'></center></pre></bdo></b><th id='sqKV2'></th></span></q></dt></tr></i><div id='sqKV2'><tfoot id='sqKV2'></tfoot><dl id='sqKV2'><fieldset id='sqKV2'></fieldset></dl></div>
        <legend id='sqKV2'><style id='sqKV2'><dir id='sqKV2'><q id='sqKV2'></q></dir></style></legend>

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

            <tfoot id='sqKV2'></tfoot>
                <bdo id='sqKV2'></bdo><ul id='sqKV2'></ul>
                  <tbody id='sqKV2'></tbody>

                1. 本文介绍了如何在 iOS 4 中更改 iPhone 应用程序的首选语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  已经讨论了更改 iPhone 应用程序的语言 许多 次,但我坚持这个:提供的解决方案需要重新启动应用程序才能使更改生效.但是你如何在 iPhone 4 上实现这一点呢?按主页"将应用程序发送到后台,然后单击应用程序图标将其返回.用户体验到好像重新启动了应用程序,并想知道为什么语言没有改变.感谢您的帮助.

                  Changing the language of an iPhone app has been discussed many times, but I'm stuck with this one: The provided solutions require the app to be restarted to make the changes take effect. But how do you achieve this on an iPhone 4? Pressing "home" sends the app to the background and clicking the app icon just brings it back. The user has experience as if the app had been restarted and wonders why the language hasn't changed. Thanks for your help.

                  推荐答案

                  您可以编写自己的替换 NSLocalizedString.在头文件中,执行类似

                  You could write your own replacement for NSLocalizedString. In the header file, do something like

                  #undef NSLocalizedString
                  #define NSLocalizedString(key, comment) MyLocalizedStringFunction(key)
                  

                  在您的函数中,使用 NSBundle 加载正确的 .lproj 包,然后调用

                  In your function, load the correct .lproj bundle using NSBundle, then call

                  [bundle localizedStringForKey:key value:nil table:nil];
                  

                  在它上面得到你想要的字符串.

                  on it to get the string you want.

                  我不知道这是否是最好的方法:我们不得不使用它,因为我们想要支持一种 iPhone 上不存在的语言,所以您的问题可能有一个更简单的解决方案.

                  I don't know if that's the best way: we had to use it because we wanted to support a language that didn't exist on the iPhone, so your problem may have a simpler solution.

                  这篇关于如何在 iOS 4 中更改 iPhone 应用程序的首选语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  quot;Auto Layout still required after executing -layoutSubviewsquot; with UITableViewCell subclass(“执行 -layoutSubviews 后仍需要自动布局带有 UITableViewCell 子类)
                  How do I animate constraint changes?(如何为约束更改设置动画?)
                  iPhone to RS-232 via Bluetooth(iPhone 通过蓝牙转 RS-232)
                  iPhone app localization by releasing separate apps for different markets(通过为不同市场发布单独的应用程序来本地化 iPhone 应用程序)
                  Convert localizable.strings to spreadsheet?(将 localizable.strings 转换为电子表格?)
                  How to determine if locale#39;s date format is Month/Day or Day/Month?(如何确定语言环境的日期格式是月/日还是日/月?)
                    1. <small id='UjDje'></small><noframes id='UjDje'>

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

                          <legend id='UjDje'><style id='UjDje'><dir id='UjDje'><q id='UjDje'></q></dir></style></legend>
                            <bdo id='UjDje'></bdo><ul id='UjDje'></ul>
                              <tbody id='UjDje'></tbody>
                          • <tfoot id='UjDje'></tfoot>