开发者

ipad sleep wake up event

开发者 https://www.devze.com 2023-03-19 21:21 出处:网络
When the ipad goes to sleep i.e. the screen turns off, the user will turn it back on and the current application at the timeis still open. Is there a way to detect this event that the ipad has woken u

When the ipad goes to sleep i.e. the screen turns off, the user will turn it back on and the current application at the time is still open. Is there a way to detect this event that the ipad has woken up from sleep?

I want to be show an UIAlert whenever it goes to sleep an开发者_运维百科d wakes up.


Take a look at the - (void)applicationDidBecomeActive:(UIApplication *)application delegate method of the application delegate.

0

精彩评论

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