<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 样式呈现?

        How can Ionic be setup to render in the iOS style by default?(如何将 Ionic 设置为默认以 iOS 样式呈现?)
        <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 样式呈现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  what#39;s property copy means in Cocoa#39;s Framework?(like UITabBar#39;s items property)(Cocoa 框架中的属性副本是什么意思?(如 UITabBar 的 items 属性))
                  Sqlite database not copied from asset folder Android(Sqlite 数据库未从资产文件夹 Android 复制)
                  SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator(SQLite 数据库副本在由设备而不是模拟器生成时出现损坏)
                  Can`t copy file from bundle to documents directory in iOS(无法将文件从捆绑包复制到 iOS 中的文档目录)
                  Android file copy(安卓文件拷贝)
                  Automatically copy property values from one object to another of a different type but the same protocol (Objective-C)(自动将属性值从一个对象复制到另一个类型不同但协议相同的对象 (Objective-C))
                    <tbody id='OaRmr'></tbody>
                  <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>