Do I need to synchronize in NSUserDefaults after deleting an object from the keys?

I searched for a while, I need to synchronize if I do:

[[NSUserDefaults standardUserDefaults] removeObjectForKey:kType];

After that should I do ?:

[[NSUserDefaults standardUserDefaults] synchronize];

Waiting for your answers in this question.

+4
source share
1 answer

Quote from this post on stackoverflow, answer from DarkDust :

[default synchronize]; , . , iOS . . , , synchronize , .

iOS 7 , , . iOS 7, , synchronize applicationDidEnterBackground: UIApplicationDidEnterBackgroundNotification .

-[NSUserDefaults synchronize]:

, ,    (, )    ,    .

+5

All Articles