开发者

How to test iPhone wake up code?

开发者 https://www.devze.com 2023-02-08 00:16 出处:网络
When an iOS app is woken up the applicationDidBecomeActive del开发者_如何学编程egate is called.

When an iOS app is woken up the applicationDidBecomeActive del开发者_如何学编程egate is called.

If a device is attached to the debugger then the app will never sleep.

How do I debug problems in the wake up code?


just delegate your applicationDidBecomeActive to other method and unittest it. You are testing your code, not Apple's wakeup callback mechanism.

0

精彩评论

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

关注公众号