Jacksonkr
Jacksonkr

Reputation: 32207

ios settings bundle manipulation from inside app

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

Answers (1)

Ashley Mills
Ashley Mills

Reputation: 53082

Absolutely. Just use

[[NSUserDefaults standardUserDefaults] setBool: NO forKey:<your-key>]

and you're good to go.

Upvotes: 3

Related Questions