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
"Info.plist"];
NSMutableDictionary *plistDictionary;
plistDictionary = [[NSMutableDictionary dictionaryWithContentsOfFile:finalPath] retain];
[plistDictionary setValue
"NewApp Name" forKey
"CFBundleDisplayName"];
[plistDictionary setValue
"New-icon.png" forKey
"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.
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
NSMutableDictionary *plistDictionary;
plistDictionary = [[NSMutableDictionary dictionaryWithContentsOfFile:finalPath] retain];
[plistDictionary setValue
[plistDictionary setValue
[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.