PDA

View Full Version : How to let user define icon image




xdot
Mar 5, 2009, 12:45 PM
Hey, I was wondering whether it is possible to link the image displayed as an icon for the app to a user defined image. Thanks for your help:)



NickFalk
Mar 5, 2009, 12:49 PM
Yes just add a 57x57 pixels png-file to your project and make sure the name matches the Icon file parameter in the Info.plist.

xdot
Mar 5, 2009, 01:03 PM
Thanks for your help but I'm not sure I explained it very well- I want to include in my app I am making the ability to choose from a selection of icon images. If you knew that and I'm just being stupid I'm sorry.

Thanks

dejo
Mar 5, 2009, 02:23 PM
Thanks for your help but I'm not sure I explained it very well- I want to include in my app I am making the ability to choose from a selection of icon images. If you knew that and I'm just being stupid I'm sorry.
Should be doable. When the user has chosen their new icon, just change the value for the "Icon file" in the Info.plist to reference the new image.

caveman_uk
Mar 6, 2009, 02:42 AM
Won't changing the info.plist at runtime break the code signing?

rendezvouscp
Mar 6, 2009, 02:46 AM
Won't changing the info.plist at runtime break the code signing?

Thatís what I thought, although I canít say that Iíve ever tried it. However, this might be a workaround (http://collison.ie/blog/2008/11/dynamic-defaultpng-files-on-the-iphone).