简体   繁体   English

iOS 13 - 我们可以使用 xib 作为启动故事板的启动屏幕吗?

[英]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.

相关问题 iOS:我们可以在 iOS 应用程序中为不同的架构使用不同的启动屏幕 storyboard - iOS: Can we use different launch screen storyboard for different schema in iOS Application 以编程方式访问启动屏幕 XIB 或故事板 - Programmatically accessing the launch screen XIB or storyboard iOS启动屏幕故事板与启动图像 - iOS Launch Screen Storyboard vs Launch Images 启动图像或启动xib / storyboard? - Launch image or launch xib / storyboard? 为 AppStore 的新 storyboard 要求更新具有 a.xib 启动屏幕的旧 iOS 应用程序的最简单方法是什么? - What's the easiest way to update an old iOS app with a .xib launch screen for the AppStore's new storyboard requirement? Appcelerator-iOS:仅对iPhone使用启动屏幕故事板吗? - Appcelerator - iOS : Use launch screen storyboard only for iPhone? iOS 8:启动屏幕 StoryBoard 显示为黑色 [单个 XIB 文件工作正常] - iOS 8: Launch Screen StoryBoard appears black [single XIB file works fine] IOS XIB 故事板启动屏幕文件显示内部图像的错误方向 - IOS XIB storyboard Launch Screen file displays wrong orientation of an image inside 除非应用程序需要全屏,否则必须提供启动故事板或xib - A launch storyboard or xib must be provided unless the app requires full screen 启动画面xib - launch screen xib
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM