iPhone - Change app icon pointed to by info.plist within the application?
Asked Answered
S

2

6

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

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.

Any ideas?

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?

Thanks.

--Batgar

Steed answered 3/8, 2009 at 18:9 Comment(0)
F
9

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

Floydflss answered 3/8, 2009 at 18:12 Comment(3)
Thanks zPesk. I figured as much. So it appears my only recourse is to ship out an entirely different app with the different icon, or to come up with a general icon that spans the "marketing space" of the application and customize internally. Thanks again.Steed
alternatively, when you submit an update to your app, you could alter the app's iconFloydflss
To make a long story short, I work for a company that has many sister companies. They want the app branded for each sister company at the springboard without having to submit a different app per sister company. We have 10 different sister companies, and the only major difference is going to be the springboard icon. That said, I am pretty sure we will find a need to customize a given string or image for a specific company, which means that we will need to ship the app per company anyway. Such is life.Steed
K
1

What you want to do is create a new target (with the relevant icon) for each "sister" app and that will allow you to compile multiple apps using the same code base. Hope this helps!

Katharinakatharine answered 28/4, 2010 at 15:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.