离子应用程序和键盘在iOS上放大/更大 [英] Ionic app and keyboard zoomed in / bigger on iOS

查看:88
本文介绍了离子应用程序和键盘在iOS上放大/更大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图对离子处理accessibility features的方式(例如放大的应用和键盘)进行反向工程.

I’m trying to reverse engineer how ionic handles accessibility features such as zoomed in app and keyboard.

这是我的问题:不久前,由于构建问题(这是一个旧版应用程序),我们已经更新了ionic框架,我不明白为什么会发生这种缩放.

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.

left上是我们的Io​​nic应用程序

On the left is our Ionic App

right上是Safari

我的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" />

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" />

我已将我的问题与此问题进行了比较离子IOS电话键盘很大(放大),但是,我的问题是一切都放大了,不仅仅是键盘.

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.

推荐答案

好吧,因此,经过数小时的网络搜索,解决方案是创建应用程序图标并在xCode中启动图像.而不是让Ionic/Cordova处理它.

Ok so after hours of searching the web, the solution was to create the app icons and launch images in xCode. and not let Ionic/Cordova handle it.

在iPhone 5或5s上,问题不存在.但是,在iPhone 6或6s等DPI较高的设备上,Ionic/Cordova无法根据手机分辨率获得正确的启动图像.是的!显然,如果分辨率不正确,启动图像将为应用程序的其余部分设置缩放".

On the iPhone 5 or 5s, the problem was not present. 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. And yes! Apparently, the launch image will set the "zoom" for the rest of the app if it's not the proper resolution.

这篇关于离子应用程序和键盘在iOS上放大/更大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆