[英]Xcode - Is there a way to disable the Iphone from charging?
I know its a long shot, but is there a way (programitically) to stop the phone from charging when it is connected to charger?我知道这是一个很长的镜头,但是有没有办法(以编程方式)在手机连接到充电器时阻止它充电?
Thanks.谢谢。
不。您可以使用 UIDevice 上的几种方法来监控电池的状态,但从天文数字上看,不可能有 API 来防止充电。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.