简体   繁体   English

为LaunchScreen.storyboard放弃图像棺材

[英]Abandon image cassetts for LaunchScreen.storyboard

So I have a fairly old app, last time worked on before iPhone X(s) was released. 所以我有一个相当老的应用程序,上次在发布iPhone X之前进行过开发。 Always used Launch Images Source instead of Launch Screen File as seen below. 始终使用启动图像源而不是启动屏幕文件,如下所示。

在此处输入图片说明

I am now having issues launching on iPhone X, as the screen size is assumed from the LaunchImage and there is NO launch image currently provided for iPhone X(s) in the "LaunchImage" file of .xcassets folder. 我现在在iPhone X上启动时遇到问题,因为屏幕大小是从LaunchImage假定的,并且.xcassets文件夹的“ LaunchImage”文件中当前没有为iPhone X提供启动图像。

What is the most straightforward way to abandon using cassets in use of the new "Launch Screen File"? 在使用新的“启动屏幕文件”时放弃使用录音机的最直接方法是什么? I have already tried creating this and using it, but had no luck getting an UIImageView to resize an image with said screen sizes on devices. 我已经尝试过创建并使用它,但没有运气让UIImageView调整设备上具有上述屏幕尺寸的图像的大小。

Im really looking for a straightforward guide for creating a LaunchImage.storyboard file that can adapt a launch screen image(full-sized image) to any device size. 我真的在寻找一个简单的指南来创建LaunchImage.storyboard文件,该文件可以使启动屏幕图像(全尺寸图像)适应任何设备尺寸。

What is the most straightforward way to abandon using cassets in use of the new "Launch Screen File"? 在使用新的“启动屏幕文件”时放弃使用录音机的最直接方法是什么?

Change the Launch Images Source pop-up menu to "Don't use asset catalogs". 将启动图像源弹出菜单更改为“不使用资产目录”。

在此处输入图片说明

Make a LaunchScreen.storyboard if there isn't one, and point Launch Screen File at it. 如果没有,请创建一个LaunchScreen.storyboard,然后将Launch Screen File指向它。 Make sure your launch image storyboard uses autolayout and is designated as a launch screen. 确保您的启动图像情节提要板使用自动布局,并被指定为启动屏幕。

在此处输入图片说明

Now configure your storyboard's view controller using autolayout so that it lays out correctly on all devices. 现在,使用自动布局来配置情节提要的视图控制器,以便在所有设备上正确布局。

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

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