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
Post a Comment