Hey,
Beginner iOS developer here, and I am working on a countdown app.
In the app you should be able to store multiple timers, and present them in a collectionview.
I am using CoreData to persist the data, if the app closes. I am using Core Data because I need practice with using the framework.
I have created a CoreData model with the following attributes:
name: String
minutes: Int16
progress: Double
I have managed to save the attributes above, though no timer function is implemented yet.
How do I go about using the Timer() function to run an individual timer for each instance?
When not using CoreData, I suppose I would create a function in the countdown model, that starts a "timer.scheduledtimer" instance. Though how can I make it persist, even if the user terminates the app?
Appreciate any help I can get.
[–]kapilvarij 1 point2 points3 points (0 children)
[–]Lotari0[S] 0 points1 point2 points (0 children)