Determining when iPhone has gone to "sleep"?


i've written app uses timer. never mind details every second app beeps. works fine.

iphone (at least display) goes "sleep" after period of time, 30 seconds maybe. when app running, display sleeps, app keeps beeping away.

there way find out when iphone has gone sleep can stop processing?

(when click home button wake iphone, app quits properly. i'd @ least halt/pause or quit on "sleep" event.)

thanks!
 

never mind - found it:

applicationwillresignactive:

need figure out how use it!
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Upgrade Eligibility?

need help with itunes 7.7

How to change Apple IDs on iPhones