UIEvent for iPhone locking & unlocking?

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2010-06-14T03:57:46Z Indexed on 2010/06/14 4:02 UTC
Read the original article Hit count: 405

Filed under:
|
|

I am building an iPhone app in which I want to time user activity. However, I don't want to count time when the iPhone was locked (or when the user received a phone call) when calculating the times. What is the best way to do this? Is there a UIEvent which my app can receive (and act upon) when the iPhone locks or unlocks?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk