iPhone 电池容量值(mAH)
我想知道如何获得 iPhone/iPad 电池的 Mha 数据容量。 我会将它们放入我打算放在 appstore 上的应用程序中,然后我就无法使用 IOKit。 有谁知道我如何获得这些值?
I would like to know how to have the data capacity in Mha for iPhone/iPad battery.
I would put them in an application that I intend to put on appstore and then I can not use IOKit.
Does anyone know how I can get these values?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 UIDevice 类参考
然后您可以向您的应用程序添加一个 plist,其中您将放置每个设备的所有电池容量,读取设备型号以及电池和充满电的百分比您可以获得以 mAH 为单位的实际容量值。
From UIDevice Class Reference
An then you can add to your app an plist where you will put all battery capacity for every device, read device model and with the percentange of battery and full capacity you can get the actual value in mAH.