Hi,
I was wondering what's the best way to store information in an app. I just need to store two values, and I thought the best way to do it is just to use the info.plist.
I am using this code store the the data on the info.plist:
I know that it changes the value while the app is running. But the problem is that the next time I start the app it goes back to the original value the field was set in xcode. (I used both the simulator and the device to debug).
Any ideas why it's doing this?
Thanks.
I was wondering what's the best way to store information in an app. I just need to store two values, and I thought the best way to do it is just to use the info.plist.
I am using this code store the the data on the info.plist:
Code:
[[[NSBundle mainBundle] infoDictionary] setValue:[NSNumber numberWithInt:row] forKey: @"exchangeRateCurrencyIndex"] ;
I know that it changes the value while the app is running. But the problem is that the next time I start the app it goes back to the original value the field was set in xcode. (I used both the simulator and the device to debug).
Any ideas why it's doing this?
Thanks.