如何在iPhone中查看后台飞行模式?

发布于 2024-11-04 03:26:01 字数 97 浏览 6 评论 0原文


我有一个与 Wifi、3G 配合使用效果最好的应用程序.. 现在我想要的是我想在后台检查飞行模式是否随时会打开,并且我想弹出警报说“飞行模式已打开。”
提前致谢。

I have application which is working best with Wifi,3G..
Now what i want is i want to check in background if Airplane mode is going to be on at any moment and i want to popup alert saying "Airplane mode is On."
Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

土豪我们做朋友吧 2024-11-11 03:26:01

您可以考虑不同的方法,检查您的移动网络可用性而不是飞行模式,并显示通用警报没有可用的网络

检查此链接 iphone-sdk-testing-network-reachability祝

你好运

You can think different approach, check your mobile Network availability rather than the Airplane mode and Show a Generic Alert There is no network Available for example.

Check This link iphone-sdk-testing-network-reachability

Good luck

梦亿 2024-11-11 03:26:01

这实际上是不可能的,除非用户在应用程序进入后台模式后 10 分钟内执行此操作。

This is practically impossible unless the user does it within a 10 minute time frame of your application entering background mode.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文