in my Core Data model, I have an entity which has got a date attribute. For example, I’ll set this date to 10/07/2011 4:00pm and I want to fire an action when current date will pass the saved date by one minute.
A local notification will be fired but I also want to fire another method to change another entity attribute’s value. Is it possible to do something like this?
I’ve also thought to NSTimer but I’ve never used them… And a last question: will this action fire always even is app isn’t in background or foreground?
Thank you so much!
Matteo
in my Core Data model, I have an entity which has got a date
Share
You can’t fire an action while running in background mode other than through local notifications.
To check if the date condition has been met while running in foreground,
NSTimeris the way to go.