简体   繁体   English

iPhone 6 显示扭曲的启动屏幕

[英]iPhone 6 shows a distorted launch screen

I have a Xamarin app, created with VS 2017 with the latest Xamarin version for VS 2017.我有一个 Xamarin 应用程序,使用 VS 2017 创建,最新的 Xamarin 版本适用于 VS 2017。

On all iPhones younger than iPhone 6, the launchscreen is correct.在 iPhone 6 之前的所有 iPhone 上,启动屏幕都是正确的。 ONLY on iPhone 6, the app starts with its splash screen distorted to an oval shape.仅在 iPhone 6 上,该应用程序的初始屏幕扭曲为椭圆形。 The resolution was at first 640*1136 but it seems, the iPhone6 scales it to 640 x 960. So I changed the resolution to 640 x 960 px.最初的分辨率是 640*1136,但似乎 iPhone6 将其缩放为 640 x 960。所以我将分辨率更改为 640 x 960 像素。 Still the oval.还是椭圆。

What is the correct resolution?什么是正确的分辨率?

The correct resolution of IPhone 6 is 750 x 1334 , you can check the resolution of different device here . iPhone 6 的正确分辨率是750 x 1334 ,你可以在这里查看不同设备的分辨率。

If you use image.xcassets via Visual Studio, just put the image with correct size into the corresponding image set, there is size above each image like 320*48, 640* 960... here is the screenshot:如果您通过 Visual Studio 使用image.xcassets ,只需将正确大小的图像放入相应的图像集中,每个图像上方都有大小,例如 320*48、640* 960... 这是屏幕截图:

在此处输入图像描述

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

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