== 更新以求澄清 ==
谢谢你看这个!
名为椰子电池的MacOS Application能够确定以下信息:
通过USB连接的iPhone。
我想知道他们是如何做到的,因为我在控制台和系统分析器中都找不到信息。
有人知道吗?
最好的
法比安
发布于 2018-01-20 12:00:34
if (![[UIDevice currentDevice] isBatteryMonitoringEnabled]){
[[UIDevice currentDevice] setBatteryMonitoringEnabled:YES];
}
NSLog(@"battery : %f", [[UIDevice currentDevice] batteryLevel]);https://stackoverflow.com/questions/48355822
复制相似问题