<分区>
最佳答案
您可以使用 - 获取当前电池电量 -
[[UIDevice currentDevice] BatteryLevel];
来自文档 -
Battery level ranges from 0.0 (fully discharged) to 1.0 (100% charged). Before accessing this property, ensure that battery monitoring is enabled.
关于ios - 确定 iOS 中当前电量还剩多少电池生命周期/电量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12369451/