[英]Disable data connection of iOS device through app
如何使用目标C断开iOS设备的数据连接。如果有人对此知道任何私有api,请告诉我。
I don't think any public API exist to do such a thing. 我不认为有任何公共API可以做到这一点。 But you can try to override the current settings for cellular and wifi settings using a configuration profile.
但是您可以尝试使用配置配置文件来覆盖蜂窝和wifi设置的当前设置。 For example when you click on a button download and install the profile.
例如,当您单击按钮下载并安装配置文件时。
Have a look at the https://developer.apple.com/library/ios/featuredarticles/iphoneconfigurationprofileref/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010206-CH1-SW13 看看https://developer.apple.com/library/ios/featuredarticles/iphoneconfigurationprofileref/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010206-CH1-SW13
and the Cellular Payloads, Wifi Payloads, VPN Payloads and allowAppCellularDataModification keys. 以及蜂窝有效载荷,Wifi有效载荷,VPN有效载荷和allowAppCellularDataModification密钥。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.