本文介绍了启动图像不会显示在我的iOS应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 限时删除!! 我希望在我的应用程序中显示一个简单的启动屏幕,使用Xcode 6.0.1构建。I want to get a simple launch screen to show in my app, built using Xcode 6.0.1.我已经通过两种方式添加了启动屏幕:As一个XIB(使用默认名称,LaunchScreen.xib)和在xcassets中设置的launchimage。I have added a launch screen in two ways: As an XIB (with the default name, LaunchScreen.xib) and as a launchimage set within xcassets.我已确保将我的启动屏幕文件设置为LaunchScreen .xib。I have made sure that my "Launch Screen File" is set to LaunchScreen.xib.我已经模拟了所有可用的设备(例如,iPhone5 iOS8/iPhone5s iOS8/iPhone6 iOS8。请注意,只有iOS 8可用模拟器)。I have simulated every device available (e.g., "iPhone5 iOS8" / "iPhone5s iOS8" / "iPhone6 iOS8". Note that only iOS 8 is available within the simulator).推荐答案所以这对于一些应该是微不足道的事情来说非常痛苦。以下是我的做法:So this has been quite painful for something that should be trivial. Here is what I did: 使用xcassets我决定使用。 xcassets与.xib的发布。我删除了.xib。如果你的项目中已有images.xcassets,那么你可以添加一个来自File> New> file:I decided to use .xcassets versus the .xib for launch. I deleted the .xib. If you have images.xcassets already in your project then great, otherwise you can add one from File>New>file: 创建启动图像集现在,通过右键单击导航区域,至少可以在.xcassets文件中创建一个launchimage设置和图标集。Now create at a minimum a launchimage set and icon set in your .xcassets file by right clicking in the navigator area. 更新应用程序图标和启动图像设置然后我确保目标中的应用程序图标和图像集如下所示。Then I made sure that the "Apps icon and image sets" in my target are as below. 非常重要:确保启动屏幕文件设置为空白。 添加图像最后但并非最不重要的是,Apple用于设备选择的术语令人困惑。最初我认为,因为我只部署iOS8(iPhone Portrait),我可以这样做,只需输入iPhone 6和iPhone 6+发布图像:Last but not least, the terminology used by Apple for the device selection is confusing. Initially I thought that since I am deploying for iOS8 only (iPhone Portrait), I can do this and just put in the iPhone 6 and iPhone 6+ launch images:我很快意识到这不是这个方式我得到了警告:iOS 7.0及更高版本的iPhone Retina(4英寸)启动图像是必需的。I quickly realized that is not the way this works and I was getting a warning:"An iPhone Retina (4-inch) launch image for iOS 7.0 and later is required."所以我有在iOS 7.0及更高版本中选择iPhone并为iPhone 5s添加图像。So I had to select the iPhone under iOS 7.0 and later as well and add an Image for the iPhone 5s.因此,要找出右侧要检查的方框,请不要问:我的最低iOS和设备及设备方向是什么,而是问:So to find out which boxes to check on the right, do not ask the question: What is my minimum iOS and device and device orientation but rather ask:哪些设备可以支持我的最低iOS?现在这些设备支持的最低iOS是多少?并确保你检查所有这些盒子。所以对我来说,我的目标是iPhone 5s,6和6 Plus 8.0,但考虑到iPhone 5s可以存在7.0,我需要检查7.0框以显示图像占位符。换句话说,右侧的(iOS)复选框显示该设备可用的最低iOS版本,您需要单击它以显示图像占位符并放置图像,无论您是否在此iOS版本上进行部署。What devices out there can support my minimum iOS? Now What is the minimum iOS supported on those devices? And make sure you check all of those boxes. So for me, I am targeting iPhone 5s, 6 and 6 Plus at 8.0 but given that iPhone 5s can exist with 7.0, I need to check the 7.0 box as well to show the image placeholder. In other words, the (iOS) check box on the right shows you the minimum iOS version available for that device and you need to click it to show the image placeholder and put an image regardless of whether you are deploying at this iOS version or not.希望这有助于某人。 这篇关于启动图像不会显示在我的iOS应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的.. 09-06 15:35