ios - Images.xcassets 中的 LaunchImage 与 Launchscreen.xib

标签 ios objective-c xcode launchimage launch-screen

我在 iOS 8 和 7 上使用 Xcode 6,我有一个 Launchscreen.xib,并且在 General Target 中我已经很好地配置了我的项目:

/image/ByJ6G.png

但我认为 Launchscreen.xib 不适用于 iOS 7.1。

所以我在Images.xcassets中为其他不支持Launchscreen的iOS制作了LaunchImage

/image/GFbgD.png

我不知道为什么,这给了我两个警告:

/Users/../Desktop/ProjectName/ProjectFolder/Images.xcassets: The launch image set "LaunchImage" has 2 unassigned images.

如何修复它并仅使用 Launchscreen.xib (如果这适用于所有 iPhone/iPad,或者使用我在 LaunchImage 中的两个图像(Images.xib) xcassets)

最佳答案

How to fix it and use only Launchscreen.xib (if that works for every iPhone/iPad, or use my two images in LaunchImage (Images.xcassets)

Launchscreen.xib 是 iOS 8 的一项功能,因此如果您的目标是 iOS 7,则应添加启动图像。

对我有用的是将“启动屏幕文件”字段保留为空,并使用带有启动图像的 Assets 目录。我尝试同时使用两者,但无法取得好的结果......

enter image description here

关于ios - Images.xcassets 中的 LaunchImage 与 Launchscreen.xib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29370337/

相关文章:

android - 用于移动开发的离线 map API

iOS Facebook 访问 token 获取用户墙订阅源(状态)

ios - 不使用 UIImage 上传 GIF

ios - 在 Swift 中将视频转换为二进制数据

iOS:有没有办法获取 View 中每个元素的背景颜色?

iphone - cellForRowAtIndexPath 加载可见单元格上方和下方的 3 个单元格

ios - faSTLane 工具和 xcode8,我还应该使用它吗?

iphone - 单击 iPhone 上的按钮时触发其他类的方法

Xcode 按钮,图像消失

objective-c - 我可以在 Objective C 中使用枚举作为属性吗