简体   繁体   English

在Xcode 5中开发的iPhone应用程序,在iPad上运行时不显示图标和启动图像

[英]iPhone application developed in Xcode 5, not showing icon and launch image while running on iPad

I have developed an iPhone app, it is not universal. 我开发了一款iPhone应用程序,它并不普及。 Now when i run it on any iPhone it's launching with splash screen and icon image is getting showed on device but- 现在,当我在任何iPhone上运行时,它会以启动画面启动,图标图像会在设备上显示,但是 -

when I run same app on iPad neither it is showing the launch images/Splash screen nor it's icon image is visible on device. 当我在iPad上运行相同的应用程序时,它既不显示启动图像/启动画面,也不会在设备上显示图标图像。

I am using Xcode 5, Deployment target is 6.0, and app is not universal. 我使用的是Xcode 5,部署目标是6.0,应用程序不是通用的。

Please have a look of images what i did yet. 请看看我做过的图像。

在此输入图像描述

在此输入图像描述

what is the correct process in Xcode 5 to set icon images and launch images of any iPhone app, should i set it for iPad somewhere? Xcode 5中设置图标图像和启动任何iPhone应用程序图像的正确过程是什么,我应该在某个地方设置它吗?

Is it because of resolution of images (Icon/Launch) for Retina and Non-Retina Display? 是因为Retina和Non-Retina Display的图像分辨率(图标/启动)?

In X-Code 5 image assets is the folder to manage the images including icon images and launch images but in my case to manage it i just check the resolution of every icon image and launch image, some of the images having correct suitable size for retina display but not having proper resolution so i corrected it. 在X-Code 5中,图像资源是管理图像的文件夹,包括图标图像和启动图像,但在我的情况下管理它我只需检查每个图标图像的分辨率并启动图像,一些图像具有正确的视网膜尺寸显示但没有适当的分辨率所以我纠正了它。

Resolution Non-Retina: 72 Resolution Retina display: 376 分辨率非视网膜:72分辨率视网膜显示:376

In image assets > icon folder > it worked for me when i put images with correct resolution and size ie- 在图像资产>图标文件夹>当我放置具有正确分辨率和大小的图像时,它对我有用 -

Xcode 5 is smart enough to check the resolution so be sure about the resolution of images, I Think. Xcode 5非常智能,可以检查分辨率,所以请确保图像的分辨率,我想。

在此输入图像描述

When i tried to add correct images in image assets > launch image, it didn't work yet so For launch image i used the old pattern to handle Launching image like- 当我试图在图像资源>启动图像中添加正确的图像时,它还没有工作,所以对于启动图像我使用旧模式处理启动图像像 -

在此输入图像描述

It worked in my case, Hope It will help others as well. 它适用于我的情况,希望它也会帮助其他人。

I think you need tick the required device and need to add App Icons and Splash Screens using image assets like. 我认为您需要勾选所需的设备,并需要使用图像资源添加App IconsSplash Screens

在此输入图像描述

Here are the sizes required for according to devices. 以下是根据设备所需的尺寸。

在此输入图像描述

Please review: Remove app from simulator (Reset simulator), clean project. 请检查:从模拟器中删除应用程序(重置模拟器),清理项目。 then check app icons and images in assets according to iOS targets and check if warning coming. 然后根据iOS目标检查资产中的应用程序图标和图像,并检查是否有警告。 then build and run the app And if stay remains please review 然后构建并运行应用程序如果留下仍然请审查

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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