ios - 尽管有启动屏幕文件,为什么还需要启动图像?

标签 ios ios11 xcode9 launchimage

在 iOS 10 中,我使用了 Launch Screen File 而不是 Launch Images:

enter image description here

在适用于 iOS 11 的 Xcode 9 中转换为 Swift 4 后,我收到以下警告:

Missing "Default-568h@2x.png" launch image

enter image description here

既然已经有启动屏幕,为什么还需要启动图像?

最佳答案

解决方案是临时添加启动图像 Assets 目录。

  1. 点击使用 Assets 目录...:

enter image description here

  1. 选择创建新的 Assets 目录:

enter image description here

  1. 切换回不使用 Assets 目录:

enter image description here

  1. 删除自动创建的Images.xcassets

  2. 警告消失。

关于ios - 尽管有启动屏幕文件,为什么还需要启动图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46334769/

相关文章:

c++ - LLDB 有时显示 vector 数据,有时不显示

swift - 如何关闭 UITableview 中除我单击的开关之外的所有其他开关

ios - 如何在 swift 中仅共享内置 iOS 应用程序

ios - 如何重构我的代码以在主线程上调用 AppDelegate?

ios - 如何停止获取?

ios - 启动屏幕图像未显示在设备上的我的 ios 应用程序上

ios - 在 iOS 11 上从右到左显示大标题

javascript - 如何在 iOS11 主屏幕网络应用程序上访问相机?

ios - 什么是 NSFaceIDUsageDescription - Face ID Usage Description Info.plist key ?

ios - 检查对象是否不是 swift 类型