iPhone关机时是否有可能举起活动? [英] Is it possible to raise an event when iPhone shuts down?

查看:92
本文介绍了iPhone关机时是否有可能举起活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做一个应用程序在用户试图关闭其功能时执行某些操作。这可能吗? iOS SDK中是否有针对此事件的事件?

I would like to do an app that do something when the user tries to turn off its idevice. Is this possible? Is there an event in iOS SDK for this?

推荐答案

不,这是无法做到的。当设备关闭时,第三方应用程序无法通知API。

No, this can't be done. There is no API available to 3rd party apps to be notified when the device is shutting down.

这篇关于iPhone关机时是否有可能举起活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆