
我查找了config.xml中的提示以及app.module.ts中的配置设置,例如:
IonicModule.forRoot( MyApp,{ swipeBackEnabled: true,platforms: { ios: { swipeBackEnabled: true,statusbarpadding: false } } } ), 而且无法找到一种优雅的方式……任何想法?
解决方法 你只需要这样做:app.module.ts
imports: [IonicModule.forRoot(MyApp,{ mode: 'ios'})], 注意:来自@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.
以上是内存溢出为你收集整理的android – 默认情况下,如何设置Ionic以iOS风格呈现?全部内容,希望文章能够帮你解决android – 默认情况下,如何设置Ionic以iOS风格呈现?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)