NSUserDefaults, is it good practice to create a local value?

I would like to know if it is good practice to mirror UserDefault values ​​or not?

For example, if I store the “A” parameter in UserDefault, is it useful to maintain a copy of this value locally and update it when UserDefault changes?

In my application, I often needed to read parameter "A", in which case I would rather read from ivar instead of NSUserDefault, but I'm not sure about that, so I ask if there is good practice.

+5
source share
2 answers

It seems to me that I need more work and

+11
source

, NSUserDefaults , .

, NSUserDefaults , , . : . .

0

All Articles