It seems that an NSTimer created in the background stalls till the app is brought back into foreground. How does the Iphone default Clock app's timer work then?
Thanks!
It seems that an NSTimer created in the background stalls till the app is brought back into foreground. How does the Iphone default Clock app's timer work then?
Thanks!
There's a real time clock in hardware, and the operating system will interface with it. It exposes the clock via a C API which is likely what the Clock app is using.
Plus, Apple has no limitation on what they can do in the background with their applications like we third party devs do.