开发者

Iphone 4.0 - Background timer

开发者 https://www.devze.com 2023-01-16 14:06 出处:网络
It seems that an NSTimer created in the开发者_JS百科 background stalls till the app is brought back into foreground. How does the Iphone default Clock app\'s timer work then?

It seems that an NSTimer created in the开发者_JS百科 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号