Remember user implementation

Discussion in 'iOS Programming' started by arnieterm, Sep 12, 2008.

  1. arnieterm macrumors regular

    Aug 28, 2008
    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?
  2. tyr2 macrumors 6502a


    May 6, 2006
    Leeds, UK
    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.
  3. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    Normal user preferences are stored using NSUserDefaults. An encrypted username/password should be stored using Keychain Services. Look at Keychain Services Programming Guide.
  4. robbieduncan Moderator emeritus


    Jul 24, 2002

Share This Page