iPad Pro可从iPad应用程序和启动屏幕文件扩展-iOS 10 [英] iPad Pro scale up from iPad application and Launch Screen file - iOS 10
问题描述
我有一个要在iPad Pro上运行的ipad应用程序,但是当我运行它时,它仅占据屏幕的一个角,如下所示:
I have an ipad application that I would like to run on iPad pro, but when I run it, it only occupies one corner of the screen like so:
现在,另一个stackoverflow问题问了同样的问题,响应是删除启动屏幕文件而不是给出操作系统有关将要运行的设备大小的任何硬编码信息。我做到了,它缩放了我的应用程序,使其全屏显示。.
Now, another stackoverflow question asked the same question and the response was to remove the launch screen file and not to give the OS any hardcoded information about the device size it's going to run on. I did it and it scaled my app to full screen BUT..
它创建了另一个iOS10特定的错误,如果您不指定启动屏幕,则会发生该错误:
iPad应用程序将应用程序图标显示为iOS 10
It created another iOS10 specific bug that happens if you don't specify the launch screen: iPad Application shows app icon as launch screen in iOS 10
如何在不影响一个或另一个错误的前提下解决此问题。
How can I fix this without compromising on one bug or the other.
推荐答案
我遇到了类似的问题。以下是对我有用的解决方案。
I ran into similar issue. Below is the solution that worked for me.
我的应用使用启动故事板来修复启动时缩放应用图标的怪异问题。
My app uses a launch story board to fix the weird issue of zoomed app icon on launch.
删除此选项可修复iPad Pro中的分辨率,并且应用程序的行为与iPad Air中的行为完全相同。
Removing this resulted in fixing the resolution in iPad Pro and app behaved exactly like in iPad Air.
但是我需要添加启动图像来修复启动时缩放的应用程序图标。
转到设置->常规
But i need to add Launch image to fix the zoomed app icon on launch. Go to Setting -> General
在资产目录中添加启动图像(1024 * 768)。 (基于您的应用支持的方向。)
这应该同时解决启动时应用图标放大的问题,并设置适当的分辨率以适合iPad中的应用就像iPad Air一样。
This should fix both the issues of zoomed app icon on launch and setting proper resolution to fit the app in iPad Pro as in iPad Air.
这篇关于iPad Pro可从iPad应用程序和启动屏幕文件扩展-iOS 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!