Michel
Michel

Reputation: 11753

PNG within an iPhone app

I have the following issue:

My iPhone app makes some kind of graphics.

How can I save these graphics or drawings made by the app as a png file on the device?

Would it then be possible to set such a png file to become the icon for the app from within the app itself? (Provided the size is right of course.)

Thanks for any possible tip.

Upvotes: 0

Views: 130

Answers (3)

WrightsCS
WrightsCS

Reputation: 50697

For saving PNG images on your device, look into UIImagePNGRepresentation which is part of the UIImage Class.

As for changing the app icon, this would only be possible if you are jailbroken and have the right package dependencies that allow the icons to refresh in SpringBoard on the fly.

Outside of being Jailbroken, changing the app icon would require an app update which would include the new icon.

Upvotes: 1

orangething
orangething

Reputation: 740

I wouldn't think it's possible for the actual icon for the app to change, because it's set on the phone when the app is installed.

Upvotes: 0

Zaky German
Zaky German

Reputation: 14334

No, you can't change the app's icon at runtime (like the Calendar app that comes with the iPhone does)

How do I change the default icon of iPhone application programmatically?

Upvotes: 2

Related Questions