xcode iPad 上未显示应用程序图标

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21305009/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:34:58  来源:igfitidea点击:

App Icon not shown on iPad

iosobjective-cxcode

提问by Hassy

I am developing iPhone app. When i run the app on iPhonei can see the the icon on Home screen. But when i run the same app on iPadwhitish icon appears which normally appears when the app has no icon.

我正在开发 iPhone 应用程序。当我在iPhone上运行该应用程序时,我可以在主屏幕上看到该图标。但是当我在iPad上运行相同的应用程序时,会出现白色图标,通常在应用程序没有图标时出现。

I have tested my other iPhoneapps they are working fine but this is causing trouble. I used Asset Catalogsto display app icons and they are perfectly adjusting in it. What could be the problem here any suggestions?

我已经测试了我的其他iPhone应用程序,它们运行良好,但这导致了问题。我使用资产目录来显示应用程序图标,它们在其中进行了完美的调整。这里有什么问题有什么建议吗?

回答by Gulz

I also initially started with developing the app for iPhone and then needed to add iPad icons and here where I found them:

我最初也开始为 iPhone 开发应用程序,然后需要添加 iPad 图标,在这里我找到了它们:

1) go to Assets 2) find appIcon (usually on top) 3) go to attributes inspector 4) choose iPad ios swift version 5) iPad iCons holders will appear you will need to fill them

1) 转到资产 2) 找到 appIcon(通常在顶部) 3) 转到属性检查器 4) 选择 iPad ios swift 版本 5) iPad iCons holder 将出现,您需要填写它们

enter image description here

在此处输入图片说明

回答by Hassy

xCode 5 was not showing anything related to iPad for an iPhone only app. So when i migrated my images to Assets Catalogsand clicked on app icon in the Attribute Inspectori was given the options like i want to give icons for iPad. So i provided and problem solved :)

xCode 5 没有显示任何与 iPad 相关的仅适用于 iPhone 的应用程序。因此,当我将图像迁移到资产目录并单击属性检查器中的应用程序图标时,我得到了一些选项,例如我想为 iPad 提供图标。所以我提供并解决了问题:)

回答by avuthless

In project settings there are fields for both, ipad and iphone icons. You may want to provide different icons for different devices, so try providing your icon for both, ipad and iphone. Even though it will be the same image.

在项目设置中有 ipad 和 iphone 图标的字段。您可能希望为不同的设备提供不同的图标,因此请尝试为 ipad 和 iphone 提供您的图标。即使它将是相同的图像。

Hope that helps.

希望有帮助。

回答by Retro

for Universal application iPad Icon file size is 72x72 and named Icon-72 and for Retina its 114x114 with [email protected]. Try to include this files into your resource bundle and then build your app

通用应用程序 iPad 图标文件大小为 72x72 并命名为 Icon-72,而对于 Retina 则为 114x114 和 [email protected]。尝试将此文件包含到您的资源包中,然后构建您的应用程序

回答by Durga Vundavalli

In project settings there are fields for App Icons please refer to the attachmententer image description here

在项目设置中有应用程序图标字段请参阅附件在此处输入图片说明

回答by chings228

  1. go to general , then app icon source , then click the appicon

  2. by default , you can't see the place for ipad

  1. 转到常规,然后应用图标源,然后单击应用图标

  2. 默认情况下,您看不到 ipad 的位置

3 . left click and create a new image set

3 . 左键单击并创建一个新的图像集

  1. then you can see all icon size , add the @76 @152 for ipad
  1. 然后你可以看到所有的图标大小,为ipad添加@76 @152

回答by Ammar Mujeeb

In my case i do have set images for iPad in my assets but even then it was not showing. I have to check Target Membershipcheck box. I had imported AppIcons folder and this got uncheck. Target Selection

就我而言,我确实在我的资产中为 iPad 设置了图像,但即便如此,它也没有显示。我必须选中目标成员资格复选框。我已经导入了 AppIcons 文件夹,这被取消了。目标选择

回答by user2071152