Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kalariyaamit

macrumors newbie
Original poster
Sep 18, 2008
8
0
Ahmedabad, Gujrat - India
Hello All,

I want to change my iPhone application icon on run-time, i want to change icon on some event.

I've already tried many things.

Like:
1) run time change info.plist file,
-----------------
NSString *finalPath = [path stringByAppendingPathComponent:mad:"Info.plist"];
NSMutableDictionary *plistDictionary;
plistDictionary = [[NSMutableDictionary dictionaryWithContentsOfFile:finalPath] retain];

[plistDictionary setValue:mad:"NewApp Name" forKey:mad:"CFBundleDisplayName"];
[plistDictionary setValue:mad:"New-icon.png" forKey:mad:"CFBundleIconFile"];

[plistDictionary writeToFile:finalPath atomically:YES];
-----------------
It's working fine on iPhone simulator but, not working on my iPhone Device.

2) Replace Old icon.

I've also tried to remove old icon and copied new as a old icon name.
this is working fine on iPhone simulator but, not working on my iPhone Device.

Please Guide me.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.