I.e., my app sets some standard default values at the beginning. Then those values may get overridden by the user. And when the user messes things up, I want to set those settings back to my app default values. As I understand it, the app defaults are a different dictionary than the user defaults, and the user defaults just override those app defaults. But I haven't seen methods for deleting the user defaults. Any idea?
+5
A:
Try removeObjectForKey
-- that should give you the ability to remove a preference.
fbrereto
2009-08-27 16:57:57
+1
A:
The recommended practice is to store your default values in code or in another plist. Then when you want to restore the defaults you just copy those values over to NSUserDefaults.
Corey Floyd
2009-08-27 21:37:58