Parameters Settings.bundle vs NSUserDefaults

I have settings.bundle settings to display 4 settings that I want so that the user can access / change. During the life of the application, I have a couple more values ​​that I store in NSUserDefaults, but I'm not interested in displaying them in Settings.app. Is it even possible that the number of values ​​in settings.bundle will differ from the actual number of key / value pairs stored in NSUserDefaults? What needs to be done to properly manage it?

Thanks,

+4
source share
1 answer

The key / value pair in your preset is managed by [NSUserDefaults standardUserDefaults] , but you have nothing to stop you from adding your own keys and values ​​for management. They will not be displayed on the settings screen of your application unless you add them to the package properties list.

Just register, save and load the user's default settings in the same way as from a set of parameters or not; there is nothing extra to do.

+2
source

All Articles