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
App Icon not shown on iPad
提问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 将出现,您需要填写它们
回答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 attachment
在项目设置中有应用程序图标字段请参阅附件
回答by chings228
go to general , then app icon source , then click the appicon
by default , you can't see the place for ipad
转到常规,然后应用图标源,然后单击应用图标
默认情况下,您看不到 ipad 的位置
3 . left click and create a new image set
3 . 左键单击并创建一个新的图像集
- then you can see all icon size , add the @76 @152 for ipad
- 然后你可以看到所有的图标大小,为ipad添加@76 @152
回答by Ammar Mujeeb
回答by user2071152
Hope the stackoverflow link will help How do you update the app icons and launch images to support IOS 6 and 7 simultaneously?
希望 stackoverflow 链接能帮助您如何更新应用程序图标和启动图像以同时支持 IOS 6 和 7?
As answered by Andy Bean, try using Asset Catalog.
正如 Andy Bean 所回答的,尝试使用 Asset Catalog。
Link 2: iOS 7 App Icons, Launch images And Naming Convention While Keeping iOS 6 Icons