简体   繁体   English

离子应用程序和键盘在iOS上放大/更大

[英]Ionic app and keyboard zoomed in / bigger on iOS

I'm trying to reverse engineer how ionic handles accessibility features such as zoomed in app and keyboard. 我试图对离子技术如何处理诸如放大的应用程序和键盘之类的accessibility features进行反向工程。

Here's my problem: we've updated the ionic framework not so long ago because of build problems (it's a legacy app) and I can't understand why this zoom happened. 这是我的问题:不久前由于构建问题(这是一个遗留应用程序),我们已经更新了ionic框架,我不明白为什么会发生这种缩放。

Ionic放大了应用程序和键盘

On the left is our Ionic App left是我们的Io​​nic App

On the right is Safari right是Safari

my index.html has a <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> and in our config.xml et have <preference name="EnableViewportScale" value="false" /> 我的index.html具有<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">并且在我们的config.xml中具有<preference name="EnableViewportScale" value="false" />

I've compared my problem with this issue Ionic IOS Tel keyboard very big (Zoom In) however, my problem is that everything is zoomed in and not just the keyboard. 我已经将我的问题与这个问题进行了比较Ionic IOS Tel键盘非常大(放大),但是我的问题是所有内容都放大了,而不仅仅是键盘。

Ok so after hours of searching the web, the solution was to create the app icons and launch images in xCode. 好了,经过数小时的网络搜索,解决方案是创建应用程序图标并在xCode中启动图像。 and not let Ionic/Cordova handle it. 而不是让Ionic / Cordova处理。

应用程序图标和启动图像

On the iPhone 5 or 5s, the problem was not present. 在iPhone 5或5s上,问题不存在。 But on a higher DPI devices like the iPhone 6 or 6s, Ionic/Cordova wasn't able to get the right launch image based on the phone resolution. 但是,在iPhone 6或6s等DPI较高的设备上,Ionic / Cordova无法根据手机分辨率获得正确的启动图像。 And yes! 是的! Apparently, the launch image will set the "zoom" for the rest of the app if it's not the proper resolution. 显然,如果启动分辨率不正确,启动图像将为应用程序的其余部分设置“缩放”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM