Where does an authoritarian source not cause NSUserDefaults to sync for iOS 8 and above?

I remember that you should not worry about calling the NSUserDefaults synchronization method on iOS 8 and above. I also read from one source other than Apple and another allusion to the same. However, I was having trouble finding an authoritative source from Apple. Was this a WWDC video a couple of years ago? What was Apple's reputable source?

Read this: NSUserDefaults and looked at some of them: WWDC 2014 Video

+4
source share
2 answers

, , - , Apple, NSUserDefaults: https://twitter.com/catfish_man/status/674727133017587712 http://dscoder.com/defaults.html

, - [NSUserDefaults synchronize] - . , , , .

:

, - , , , , . -synchronize (. " " ), , , , - "" . NSUserDefaults.

, , , -synchronize : -synchronize, "", , , , , , . , iOS 9.3 /macOS Sierra, -synchronize ( ) , , . , , .

+1

, (, ). :

, -[NSUserDefaults synchronize], . , , , . .

; . , , .

+2

Source: https://habr.com/ru/post/1624178/


All Articles