简体   繁体   English

iPad Pro 从 iPad 应用程序和启动屏幕文件扩展 - iOS 10

[英]iPad Pro scale up from iPad application and Launch Screen file - iOS 10

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:我有一个 ipad 应用程序,我想在 iPad pro 上运行,但是当我运行它时,它只占据屏幕的一个角,如下所示:

在此处输入图片说明

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.现在,另一个 stackoverflow 问题提出了同样的问题,响应是删除启动屏幕文件,而不是向操作系统提供有关它将运行的设备大小的任何硬编码信息。 I did it and it scaled my app to full screen BUT..我做到了,它将我的应用程序缩放到全屏,但是..

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它创建了另一个 iOS10 特定错误,如果您不指定启动屏幕,则会发生此错误: iPad 应用程序将应用程序图标显示为 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.我的应用程序使用启动故事板来解决启动时缩放应用程序图标的奇怪问题。

Removing this resulted in fixing the resolution in iPad Pro and app behaved exactly like in iPad Air.删除它会导致修复 iPad Pro 中的分辨率,并且应用程序的行为与 iPad Air 中的完全相同。

But i need to add Launch image to fix the zoomed app icon on launch.但我需要添加启动图像来修复启动时缩放的应用程序图标。 Go to Setting -> General转到设置 -> 常规

Launch image settings启动图像设置

Add launch images (1024 * 768) in asset catalog.在资产目录中添加启动图像(1024 * 768)。 (Based on orientations your app supports.) (基于您的应用支持的方向。)

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 Air 中一样。

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

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