How to integrate splash screen for all types of iPhones in Xcode 6.1?

前端 未结 4 388
渐次进展
渐次进展 2020-12-02 07:30

I need to create and app which will run on iPhone 4S, 5,5S, 6, 6+ and the deployment target will be iOS 7.1. I saw Apple introduced LauchScreens.xib for creating the launch

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 08:15

    I have been playing around Xcode 6 from sometimes now and what I found is LaunchScreen.xib works for iOS 8 only, so if you want to provides launch image for all your devices, your app supports you can do as below..

    For Device using iOS 7 you can do as usual, what we used to do using images.xcassets enter image description here

    For iOS 8 devices you have two ways..

    1. Simply you can use LaunchScreen.xib. enter image description here this image show how Xcode by defaults sets LaunchScreen.xib for iOS 8 launch screen file.

      1. If you don't want to set LaunchScreen.xib as launch screen file and want to display some launch image as you want in iOS 7 device, so just remove launch screen file name and make it blank(see below image) and delete LaunchScreen.xib file from Xcode. In this case iOS 8 device also takes launch image from launch images from images.xcassets. enter image description here

提交回复
热议问题