简体   繁体   中英

Disable data connection of iOS device through app

如何使用目标C断开iOS设备的数据连接。如果有人对此知道任何私有api,请告诉我。

I don't think any public API exist to do such a thing. But you can try to override the current settings for cellular and wifi settings using a configuration profile. 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

and the Cellular Payloads, Wifi Payloads, VPN Payloads and allowAppCellularDataModification keys.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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