PDA

View Full Version : Check if a setting has been changed?




zerocustom1989
Aug 6, 2010, 07:24 PM
I want to implement code that will erase all core-data entities if a particular setting is changed in the settings app. Is this possible? Im not aware of any methods that return a "setting changed" value.



pflau
Aug 6, 2010, 10:22 PM
I want to implement code that will erase all core-data entities if a particular setting is changed in the settings app. Is this possible? Im not aware of any methods that return a "setting changed" value.

Neither am I. You just need to keep checking your setting. Of course the only way the setting is changed is when the user leaves your app to go to the setting app so you don't really need to recheck all the time. You just need to recheck whenever you get the applicationWillEnterForeground message.