[英]How to know by code if the user has disabled cellular data in Settings?
How to know by code if the user has disabled cellular data in Settings ? 如何通过代码知道用户是否在“设置”中禁用了蜂窝数据?
I have tried with Reachability but this tell me only if internet connection is reachable... 我已经尝试过可到达性,但这仅在互联网连接可用时告诉我...
You cannot check this via code. 您无法通过代码检查此内容。 Apple have not made this part of the public API.
苹果尚未将此部分纳入公共API。 The best you can do is just check if there is connection as you're doing now.
您能做的最好的事情就是检查您现在是否已建立连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.