I have created a custom Settings.app bundle using the standard root.plist approach for the iPhone. I’m wondering if there’s a way to determine when the user changes those settings in my app…
I have created a custom Settings.app bundle using the standard root.plist approach for the
Share
You can listen for NSUSerDefaultsDidChange-notifications with this:
Whenever the NSUserDefaults changes,
defaultsChangedwill be called.Don’t forget to call
[[NSNotificationCenter defaultCenter] removeObserver:self];when you want to stop listening for these notifications (you should also do this when object gets deallocated).