So I have a simple personal finance app that needs to perform recurring expense on monthly basis (Automatically, without user action). What’s the best way to do it?
EventKit seems not the best tools for it while NSTimer is limited on 50 – 100 milliseconds.
Thanks!
Why couldn’t you just check current date/time and run all pending tasks in different places of your application, for example when new view is displayed or
-applicationSignificantTimeChange:is called? Do you really need to process your task both in background and with a millisecond-to-second precision?I mean, you are periodically (by timer or just by user action) checking if your recurring tasks need to be executed, and then run and record them.
I was working on a money tracking app once in my career, and we had implemented recurring tasks in that way. It was easy, painless and no user complained.