How to get battery level with 1 % accuracy in ios

Ankit picture Ankit · Sep 10, 2012 · Viewed 6.9k times · Source

How to get battery level with 1 % accuracy .

       [UIDevice currentDevice].batteryLevel

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...

Answer

Nandan Sawant picture Nandan Sawant · Dec 11, 2014

Starting with iOS 8,

[UIDevice currentDevice].batteryLevel

provides 1% accuracy :)