Add/remove UILocalNotification based on changes in my settings bundle

Posted by Daniel Chui on Stack Overflow See other posts from Stack Overflow or by Daniel Chui
Published on 2012-06-28T21:12:45Z Indexed on 2012/06/28 21:15 UTC
Read the original article Hit count: 310

I have an app that sends a notification at the same time everyday, reminding the user to enter data into it. However, I want to give the user teh option to disable this as this could get very annoying, so I have an "Enable alerts" in a custom settings bundle. My question is, when the user toggles the switch in the settings bundle, can I add/remove the notifications that are already scheduled without having to enter the app again?

note: I'm building and supporting for iOS 4.2.1, and I don't konw why but under "notifications" in the settings app, my app does not appear. I see it on ios 5.x devices though

© Stack Overflow or respective owner

Related posts about ios

Related posts about uilocalnotification