开发者

ipad sleep wake up event

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜