Remember user implementation

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

  1. arnieterm macrumors regular

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

    tyr2

    Joined:
    May 6, 2006
    Location:
    Leeds, UK
    #2
    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 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #3
    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

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London

Share This Page