开发者

iPod won't sleep when connected to debugger

开发者 https://www.devze.com 2023-02-09 00:25 出处:网络
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

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.

0

精彩评论

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

关注公众号