I have set my Facebook-AppId in the Info.plist. But I wish to edit it because its dynamic. How shall I do it programmatically?
Probably write in info.plist is not good idea and it doesn't work because you are trying to write the dictionary to a .plist file inside your App bundle, which is read only. Thus it would not work and also would have more rejection chances even if you get it done other way.
BTW why Info.Plist only? I mean why you can not have it in other way e.g nsuserdefaults or sql
You can't edit the Info.plist of your app. You don't have write access to that file (assuming you want to release this on the App Store).
The only way to write a plist file is to copy it from the bundle to the document folder of your app.
After that you can write. Here is a good tutorial but there are much more. Just google. http://ipgames.wordpress.com/tutorials/writeread-data-to-plist-file/
© 2022 - 2024 — McMap. All rights reserved.