<legend id='yeMN3'><style id='yeMN3'><dir id='yeMN3'><q id='yeMN3'></q></dir></style></legend>
    1. <small id='yeMN3'></small><noframes id='yeMN3'>

      <tfoot id='yeMN3'></tfoot>

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

          <bdo id='yeMN3'></bdo><ul id='yeMN3'></ul>
      2. 如何将 Ionic 设置为默认以 iOS 样式呈现?

        时间:2024-04-13
        <i id='eNDyO'><tr id='eNDyO'><dt id='eNDyO'><q id='eNDyO'><span id='eNDyO'><b id='eNDyO'><form id='eNDyO'><ins id='eNDyO'></ins><ul id='eNDyO'></ul><sub id='eNDyO'></sub></form><legend id='eNDyO'></legend><bdo id='eNDyO'><pre id='eNDyO'><center id='eNDyO'></center></pre></bdo></b><th id='eNDyO'></th></span></q></dt></tr></i><div id='eNDyO'><tfoot id='eNDyO'></tfoot><dl id='eNDyO'><fieldset id='eNDyO'></fieldset></dl></div>

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

        <legend id='eNDyO'><style id='eNDyO'><dir id='eNDyO'><q id='eNDyO'></q></dir></style></legend>

                  <tbody id='eNDyO'></tbody>
                  <bdo id='eNDyO'></bdo><ul id='eNDyO'></ul>
                  <tfoot id='eNDyO'></tfoot>
                  本文介绍了如何将 Ionic 设置为默认以 iOS 样式呈现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Right now the ionic app renders with android styling by default. Instead of using the ?ionicplatform=ios param every single time I'd like that to be the default option.

                  I looked for hints in the config.xml as well as the config settings in app.module.ts such as:

                  IonicModule.forRoot(
                        MyApp, 
                        {
                          swipeBackEnabled: true,
                          platforms: {
                            ios: {
                              swipeBackEnabled: true,
                              statusbarPadding: false
                            }
                          }
                        }
                      ),
                  

                  and was unable to find an elegant way of doing it...Any ideas?

                  解决方案

                  You just need to do this:

                  app.module.ts

                  imports: [
                  IonicModule.forRoot(MyApp,{
                      mode: 'ios'
                  })
                  ],
                  

                  Note: From @sebaferreras

                  Btw, by setting this config the app will use the ios styles and components even if you run it on an Android device. Please notice that ?ionicplatform=ios is just used to see how the app looks like when using the browser, but does not affect how the app is built. But setting mode: 'ios' will force the ios mode and apply the ios styles even if you build and create a .apk file.

                  这篇关于如何将 Ionic 设置为默认以 iOS 样式呈现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:离子文件下载不起作用 下一篇:firebase 社交登录未重定向到应用程序,离子 3,ios

                  相关文章

                  <tfoot id='OaRmr'></tfoot>

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

                    1. <legend id='OaRmr'><style id='OaRmr'><dir id='OaRmr'><q id='OaRmr'></q></dir></style></legend>