简体   繁体   中英

Xcode 5 - Launch Images not loading in iPad of iPhone app

I am developing an iPhone app on Xcode 5, it's having iOS 7 design but deployment target is iOS 6.0.

My question is concerned to Splash Screen of the app. It is working fine in iPhone.

在此处输入图片说明

Now when i tried to run app on my iPad, it is not loading the Splash Screen/Launch Images and It is showing blank screen instead of actual splash screen image, then from Rootviewcontroller it's working fine.

Xcode常规信息图像。

I have set the Launch Images in Xcode "Images.xcassets" folder.

Xcode Images.xcassets启动图像部分。

Please suggest, what process should I follow to prepare Splash Screen on iPad properly ?

What is the way to set Splash Screen of an iPhone app for an iPad in Xcode 5 ?

Old pattern would be helpful for the iPhone app developed in X-code 5. To implement this-

Uncheck from Launch Image Assets

资产屏幕截图

and add iPhone Default splash screen images

图像的屏幕截图

Open your Utility view and check the appropriate properties. 在此处输入图片说明

Well there is a few things to double check here.

First lets check that your Deployment Info is correct. Make sure that the Device is set to Universal otherwise it will only load in iPhone and have the x2 option on iPad. To do this do as Haakon has recommend - also see image. Whilst you're there check that your Deployment Target is iOS 7 as you have specified it is for iOS 7 (So I assume your app is iOS 7 only)

在此处输入图片说明

I suspect that the Device is set to iPhone and that your Deployment Target is set to something below iOS7. Once you have the correct Deployment Info you should have settings like below in image assets catalog in your launchImages. If not look at the right hand side of this image notice the extra check boxes that you can select. Selecting these should add remove the relevant images.

在此处输入图片说明

If iPhone splash is not showing up then it may be an issue of incorrect order of orientation in info.plist file. You can correct it simply by removing all check from selected orientation and then start selection from the top. You can see a detailed answer here http://www.folio3.com/blog/resolve-iphone-splash-screen-showing-ios-8-error/

It seems you haven't set up your application to be universal. Go to project settings and check if you have set the app to be Universal

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM