作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
...should prevent users from editing that preference by disabling any appropriate controls.
The NSUserDefaults class is thread-safe. Persistence of NSURL and file reference URLs...
这个冗长的讨论表明它不是
http://www.cocoabuilder.com/archive/cocoa/155227-nsuserdefaults-thread-safety.html
那么哪个是对的呢?还有为什么意见不同。
最佳答案
Apple iOS 5.1 和 OS X 10.7 文档说它是线程安全的;因此它是线程安全的。
关于objective-c - NSUserDefault 线程安全吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10864482/
我是一名优秀的程序员,十分优秀!