ios - Best practice for multiple users: Core Data or NSUserDefaults -


i'm developing app can have multiple users. mean, when user downloads app, he'll have 1 user ( default ), can add more users parents/sons/wife/etc. , each user have own data.

so question is: best way handle these users' data ? thinking using core data 'think' it's complicated add new attribute users entity ( i'm not sure! ). so, i'm thinking using nsuserdefaults ( might less complicated.. ).

i hope can me this, if have use/do else.

thank you, bader al-rasheed

do not use nsuserdefaults data. maybe 1 string here , there, never entire data model.

as building core data, straightforward. need create user entity necessary attributes , can create, insert, update, , delete records using standard core data.

i made example application uses coredata. feel free check out: https://github.com/jakenberg/coredataexample


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -