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

arnieterm

macrumors regular
Original poster
Aug 28, 2008
201
0
Hi
I need to implement a remember user [similar to remember facilty appearing in login screens of most web sites] in an IPhone application. Initially, I tried by first creating a .strings file in Resources folder but it seems to me that we can only read from the file but cannot modify them
If I place the same file outside of my application directory, I am be able to read as well as modify it.
Since the information is very small, hardly 5 lines so i do not want to use any database like sqlite.
But storing such information in text format is critical.
Can it be possible to store it in encrypt format?
If yes, then how?
Does Property list be of any help here?
 
Take a look at NSUserDefaults that'll probably do what you want.

If you start including encrypting in your app make sure you've read the relevant sections regarding encryption in the app store publishing guide. There are all kinds of restrictions around import/export from the US depending on what it is you are doing.
 
Normal user preferences are stored using NSUserDefaults. An encrypted username/password should be stored using Keychain Services. Look at Keychain Services Programming Guide.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.