[英]iOS 13 - Can we use xib as a launch screen over launch storyboard?
As Apple announced during WWDC with their new requirement that by April 2020, all apps should adopt Launch Storyboards because they will be deprecating launch images.正如 Apple 在 WWDC 期间宣布的新要求,到 2020 年 4 月,所有应用程序都应采用 Launch Storyboards,因为它们将弃用启动图像。
My question is, can we use a launch screen xib file over a launch storyboard file?我的问题是,我们可以在启动故事板文件上使用启动屏幕 xib 文件吗? Or is there another reason why they recommend specifically using a launch storyboard because storyboards are usually faster and allocate less memory?
或者他们推荐使用启动故事板的另一个原因是因为故事板通常更快并且分配更少的内存?
From Apple documentation:来自苹果文档:
In iOS 13 and later, always provide a launch storyboard for your app.
在 iOS 13 及更高版本中,始终为您的应用提供启动故事板。 > Don't use static launch images.
> 不要使用静态启动图像。
Found my answer!找到我的答案! With the release of XCode 11 beta 4 yesterday, Apple included the following in their release notes:
随着昨天 XCode 11 beta 4 的发布,Apple 在其发行说明中包含了以下内容:
Your app might fail to build if it contains a launch image.
如果您的应用包含启动图像,则它可能无法构建。 The failure message resembles the following: “The launch image set named did not have any applicable content.”
失败消息类似于以下内容:“名为的启动映像集没有任何适用的内容。” Launch images are deprecated and should be removed;
启动图像已被弃用,应删除; use a launch storyboard or .xib file instead.
改用启动故事板或 .xib 文件。 (50210495)
(50210495)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.