views:

87

answers:

1

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!

A: 

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.

jer
Thanks, jer! I just wanted to make sure there's nothing at the SDK/API level that can accomplish something like that.