LaunchScreen.xib 所有设备的单一图像?

LaunchScreen.xib single image for all devices?

我正在使用当前 Xcode 并定位 iOS 8.

我想知道是否可以在我的 LaunchScreen.xib 中放置一个限制在父容器所有边的 imageView。在该图像视图中,我的初始图像名为:splash.png;

现在更重要的是,这张 splash.png 将是高分辨率的,所有设备 (iPhone/iPad) 都将使用这一张图片。根据苹果的指导方针,这可以吗? (注意:我没问题)我不介意它是否可以拉伸以适应)。另请注意,我的应用只有纵向模式。

是的。没关系,那是因为他们引入了这个新功能(launchscreen.xib)。

For deployment targets prior to iOS 8, you add a set of launch images to an asset catalog for each of the possible screen sizes.

New projects are created with a launch screen file called LaunchScreen.xib. Alternately, you can create a new launch screen file using File > New, selecting the User Interface category, and choosing a file type of Launch Screen. The launch screen uses size classes to adapt to different screen sizes and orientations, see Adapt to Multiple iOS Screen Sizes and Orientations with Size Classes for more information.

参考:Create and Set the iOS Launch Images or Launch Screen File