如何更新应用程序图标并启动图像以同时支持IOS 6和7? [英] How do you update the app icons and launch images to support IOS 6 and 7 simultaneously?

查看:102
本文介绍了如何更新应用程序图标并启动图像以同时支持IOS 6和7?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直陷入困境,想知道如何从同一版本中支持IOS7和IOS 6+的Xcode5发布应用程序,并为两者正确加载资源(图标和启动画面),并仍然为IOS 6渲染资源正确。我所遇到的主要问题是试图使IOS 6仍然呈现图标而没有阴影或突出显示,因为预渲染选项。任何想法如何让所有内容和图标正确呈现并支持多个操作系统版本?

I have been stymied figuring out how to release an application from Xcode5 that supports IOS7 AND IOS 6+ in the same build, with assets (icons and splash screens) that load correctly for both, AND still render the assets for IOS 6 correctly. The major hangup I had was trying to make IOS 6 still render the icons without shading or highlighting since the "prerendered" option is no longer even available in Xcode 5's GUI. Any ideas how to get all of the content and the icon to render correctly AND support multiple OS versions?

安德鲁

推荐答案

Apple已明确指南关于IOS 7应用程序的要求,但即便如此,我遇到错误,使单个应用程序支持多个操作系统版本。在开始工作之后,我想我会指出一些区域,这些区域可以帮助我将来帮助其他人。

Apple has clear guidelines on requirements for IOS 7 apps but even then, I ran into errors making a single app support multiple OS versions. After getting it to work, I thought I would point out a few areas that were hangups for me to aid others in the future.

我首先更新了我的整个应用程序干净地支持IOS 7,然后返回并启用以前的版本,但不需要该过程。

I first updated the whole of my app to support IOS 7 cleanly and then went back and enabled previous versions but that process is not necessary.

确保首先设置正确的部署目标

Just ensure you first set the correct deploy target

设置部署目标后,Xcode5很好地更改了列表支持多个操作系统版本所需的默认资产。确保以所需的分辨率和所需的文件名重新上载正确版本的图标(如下所示,支持IOS6-IOS7)

Once you set the deployment target, Xcode5 nicely changes the list of default assets it requires to support the multiple OS versions. Ensure you reupload the correct versions of icons at the required resolutions and required filenames (shown below for IOS6-IOS7 support)

对于启动图像执行相同操作,请注意您必须重命名你的发布图像为新名称,如果你让它,Xcode会尝试为你做这个。请注意下面的新尺寸,因为IOS7会扩展状态栏后面的启动图像背景。

Do the same for the launch images, note that you will have to rename your launch images to new names, Xcode tries doing this for you if you let it. Note the new sizes below, as IOS7 expands the launch image background behind the status bar.

最后,手动添加下面的两个.plist标志,你应该设置让你的图标在IOS版本中一致呈现,没有光泽(下面有解释)

Finally, manually add the two .plist flags below and you should be set to have your icons render across IOS versions consistently, with no gloss (explanation follows)


IOS7 in它的新平整度消除了之前版本所做的后处理,它们为图标添加了高光和光泽效果。 IOS 7应用程序不再使用该效果,但如果您在IOS 6上从Xcode5加载应用程序,它将重新应用默认的光泽效果。这是令人愤怒的,因为Xcode中不再有预呈现的GUI标志来禁用该后处理。如上所述,您需要手动将标志添加到应用程序的plist中。在我的情况下,我必须在两个位置中添加标志以强制IOS 6停止应用效果。您可以通过直接打开文件或导航到项目概述中的设置来访问plist。您可能需要从模拟器中卸载应用程序,然后重建应用程序以强制模拟器丢失其旧图标的缓存。

IOS7 in its new flatness removes the postprocessing the previous versions did where they added a highlight and gloss effect to icons. That effect is no longer done for IOS 7 apps but if you load an app from Xcode5 on IOS 6, it will reapply the default gloss effect. This is infuriating because there no longer is a "prerendered" GUI flag in Xcode to disable that postprocessing. As mentioned above, you need to add the flag manually to your application's plist. In my case, I had to add the flag in two locations to force IOS 6 to stop applying the effect. You can access the plist by either opening the file directly or navigating to the settings in your project overview. You may need to uninstall the app from your simulator and then rebuild the app to force simulator to lose its cache of the old icon.

这篇关于如何更新应用程序图标并启动图像以同时支持IOS 6和7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆