连接到调试器时 iPod 不会休眠
我已将 iPod 连接到在 XCode 中运行的调试器。自动锁定时间设置为 1 分钟。当调试器未运行时,iPod 在 1 分钟不活动后进入睡眠状态。但是,当调试器运行时,我的 iPod 不会休眠。
这很令人沮丧,因为我想看看当 iPod 进入睡眠状态时我的应用程序调用了哪些方法。
有谁知道如何解决这个问题?
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 called on my app when the iPod goes to sleep.
Does anyone know how to solve this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需按下顶部电源/锁定按钮即可手动锁定。它在支持多任务处理的 iOS 设备上调用相同的方法 (applicationDidEnterBackground:)。
Just lock it manually by pressing the top power/lock button. It calls the same methods (applicationDidEnterBackground:) on iOS devices which support multitasking.