Xcode 5 - 启动图像未在 iPhone 应用程序的 iPad 中加载
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20567993/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 5 - Launch Images not loading in iPad of iPhone app
提问by Nico
I am developing an iPhone app on Xcode 5, it's having iOS 7 design but deployment target is iOS 6.0.
我正在 Xcode 5 上开发 iPhone 应用程序,它具有 iOS 7 设计,但部署目标是 iOS 6.0。
My question is concerned to Splash Screen of the app. It is working fine in iPhone.
我的问题与应用程序的启动画面有关。它在 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.
现在,当我尝试在 iPad 上运行应用程序时,它没有加载启动画面/启动图像,而是显示空白屏幕而不是实际启动画面图像,然后从 Rootviewcontroller 中它工作正常。
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 ?
请建议,我应该遵循什么过程来正确准备 iPad 上的启动画面?
What is the way to set Splash Screen of an iPhone app for an iPad in Xcode 5 ?
在 Xcode 5 中为 iPad 设置 iPhone 应用程序的启动画面的方法是什么?
采纳答案by Akhil
Old pattern would be helpful for the iPhone app developed in X-code 5. To implement this-
旧模式将有助于在 X-code 5 中开发的 iPhone 应用程序。要实现这一点-
Uncheck from Launch Image Assets
取消选中启动图像资产
and add iPhone Default splash screen images
并添加 iPhone 默认启动画面图像
回答by zeiteisen
Open your Utility view and check the appropriate properties.
打开您的实用程序视图并检查相应的属性。
回答by Popeye
Well there is a few things to double check here.
好吧,这里有几件事需要仔细检查。
First lets check that your Deployment Infois correct. Make sure that the Deviceis 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 Targetis iOS 7 as you have specified it is for iOS 7 (So I assume your app is iOS 7 only)
首先让我们检查您的部署信息是否正确。确保设备设置为Universal
否则它只会在 iPhone 中加载并x2
在 iPad 上有选项。为此,请按照Haakon
建议进行操作 - 另请参见图像。当您在那里时,请检查您的部署目标是否为 iOS 7,因为您已指定它适用于 iOS 7(因此我假设您的应用程序仅适用于 iOS 7)
I suspect that the Deviceis set to iPhone
and that your Deployment Targetis set to something below iOS7. Once you have the correct Deployment Infoyou 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.
我怀疑设备设置为iPhone
并且您的部署目标设置为低于 iOS7 的内容。获得正确的部署信息后,您应该在launchImages的图像资产目录中具有如下设置。如果没有查看此图像的右侧,请注意您可以选择的额外复选框。选择这些应该添加删除相关图像。
回答by Aneeq
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/
如果 iPhone 启动画面未显示,则可能是 info.plist 文件中的方向顺序不正确的问题。您可以简单地通过从选定方向删除所有检查然后从顶部开始选择来更正它。你可以在这里看到详细的答案 http://www.folio3.com/blog/resolve-iphone-splash-screen-showing-ios-8-error/
回答by bogen
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
您似乎尚未将应用程序设置为通用。转到项目设置并检查您是否已将应用程序设置为通用