iPhone - 在应用程序中更改info.plist指向的应用程序图标? [英] iPhone - Change app icon pointed to by info.plist within the application?

查看:88
本文介绍了iPhone - 在应用程序中更改info.plist指向的应用程序图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在代码中更改指向info.plist中的47x47 PNG for iPhone跳板图标?

Is there any way to change the 47x47 PNG, pointed to within info.plist, for the iPhone springboard icon from within code?

我知道我可以添加一个通过每种语言更改的info.plist翻译并更改iPhone支持的每种语言的跳板图标,但我想根据应用程序中的用户偏好更改我的iPhone应用程序的跳板图标。

I understand I can add a translation and change the springboard icon per language that the iPhone supports via a changed info.plist per language, but I would like to change the springboard icon for my iPhone app based on a user preference within the app.

任何想法?

我没有尝试过这个,但是可以在应用包中复制另一个文件吗?我可以发送指向base.png的info.plist,然后用代码中的我的应用程序将base.png替换为另一个PNG I包吗?

I haven't tried this, but can a file be copied over another within an app bundle? Could I ship with info.plist pointing to "base.png" then replace "base.png" with another PNG I package with my app from within code?

谢谢。

- Batgar

--Batgar

推荐答案

这是不可能的 - 一部iPhone应用程序主程序包是只读的,因此您无法在应用程序中更改应用程序图标。

This cannot be done - an iPhone application main bundle is read only, so you cannot change your app icon from within your app.

这篇关于iPhone - 在应用程序中更改info.plist指向的应用程序图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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