Reputation: 32207
If a user toggles a setting to "ON" in the settings for my app (from my settings.bundle), can I have the app toggle it back to "OFF" on the next time the app is brought to the foreground / launched?
Upvotes: 0
Views: 500
Reputation: 53082
Absolutely. Just use
[[NSUserDefaults standardUserDefaults] setBool: NO forKey:<your-key>]
and you're good to go.
Upvotes: 3