iPod won't sleep when connected to debugger
I've got my iPod connected to my debugger running in XCode. The auto-lock is set to 1 minute. When the debugger is not running, the iPod goes to sleep after 1 minute of inactivity. However, when the debugger is running, my iPod won't sleep.
This is frustrating because I want to see what methods get call开发者_如何学编程ed on my app when the iPod goes to sleep.
Does anyone know how to solve this problem?
Just lock it manually by pressing the top power/lock button. It calls the same methods (applicationDidEnterBackground:) on iOS devices which support multitasking.
Add a logging call to the methods that get called.
精彩评论