如何在ios中以1%的准确度获得电池电量 [英] How to get battery level with 1 % accuracy in ios
本文介绍了如何在ios中以1%的准确度获得电池电量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何以1%的准确度获得电池电量。
How to get battery level with 1 % accuracy .
[UIDevice currentDevice].batteryLevel
将电池电量精确到5%。
但我最近在运行ios 5.1的iphone 4S上使用了Battery Doctor App,它的电池电量精度为1%。
任何人都有任何想法,我们怎样才能获得这种准确性...
我已经尝试过很多但是没有得到他们如何计算它...
提前谢谢...
Will give battery level with accuracy of 5%. But i recently used Battery Doctor App on my iphone 4S running ios 5.1, which is giving battery level with 1% accuracy . Anyone has any idea , how can we get that accuracy ... I have tried and searched a lot but not getting how they are calculating it .. Thanks in advance...
推荐答案
从iOS 8开始,
[UIDevice currentDevice].batteryLevel
提供1%的准确度:)
这篇关于如何在ios中以1%的准确度获得电池电量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文