iPad Pro Cordova App缩放

iPad Pro Cordova App缩放

问题描述:

使用Cordova时如何使iPad Pro应用不缩放?我想出了一种解决方法,将初始,最小和最大比例设置为.75,但它仍然显示为像素化.当我查看主屏幕和应用程序中的状态栏时,应用程序状态栏明显更大,因此我肯定知道它正在扩大.

How do you make the iPad Pro app not scale when using Cordova? I figured out a workaround setting initial, minimum, and max scale to .75, but it still appears pixelated. When I look at the status bar on the home screen vs in the app, the app status bar is significantly larger, so I definitely know it's scaling up.

我认为,由于无法在StackOverflow上找到答案,因此我将发布该问题的解决方案.我从 http://www.cordovacircus.com/articles/获得了帮助ipad-pro-and-cordova .

I figured that, since I couldn't find an answer to this on StackOverflow, I'd post my solution to the issue. I got assistance for this answer from http://www.cordovacircus.com/articles/ipad-pro-and-cordova.

步骤:
1.在Xcode项目中创建一个情节提要.要打开此项目,请转到{app root}/platforms/ios/,然后打开.xcodeproj文件.
2.将视图控制器拖到情节提要中.这将作为您的初始屏幕,因此您可以添加所需的任何内容.我只需要固定缩放比例即可,所以我无所事事.
3.单击Xco​​de内项目的根目录,进入常规设置.向下滚动到App Icons and Launch Images,然后将Launch Screen File更改为刚创建的情节提要文件.

Steps:
1. Create a storyboard in your Xcode project. To open this project, go to {app root}/platforms/ios/, and open up the .xcodeproj file.
2. Drag a view controller into the storyboard. This will operate as your splash screen, so you can add anything you'd like. I only needed to get the scaling fixed so I left mine blank.
3. Go to general settings by clicking the root of the project inside of Xcode. Scroll down to App Icons and Launch Images, and change the Launch Screen File to the storyboard file you just created.

Voila!该应用程序现在应在不缩放的情况下以全屏模式启动.

Voila! The app should now launch in fullscreen with no scaling.