简体   繁体   English

如何以编程方式重新启动飞行模式 iphone

[英]How to restart airplane mode programmatically iphone

I am studying about coding and I got a question to control airplane mode in iphone programmatically我正在学习编码,我有一个问题以编程方式在 iphone 中控制飞行模式

For android phone, we can use usb connection and adb to send unix command to control airplane mode.对于安卓手机,我们可以使用usb连接和adb发送unix命令来控制飞行模式。

Is there any possibility to control airplane mode by unix command and lighting cable connection?是否有可能通过 unix 命令和照明电缆连接来控制飞行模式?

I was checking ios: turn on/off airplane mode from code for iPhone / iPad我正在检查ios:从 iPhone/iPad 的代码打开/关闭飞行模式

How to check Airplane mode in background in iPhone? 如何在 iPhone 后台查看飞行模式?

but i am not clearly sure if it is possible...但我不确定是否有可能......

No, you just can't do that.不,你不能那样做。

An app has to adopt to the current network state, not control it.应用程序必须适应当前的网络状态,而不是控制它。

您需要访问私有 API,这意味着您无法将应用上传到App Store因为不允许在生产模式下使用私有 API。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM