2

It seems the "default" data returned by UIDevice batteryLevel is in 5% increments. How do I get it to 1% or finer?

jimmym715
  • 1,512
  • 1
  • 16
  • 25
Stride
  • 351
  • 5
  • 15
  • 1
    Wondered that too! - Related - http://stackoverflow.com/questions/1469549/iphone-calculating-battery-life – PostMan Nov 02 '10 at 21:55

2 Answers2

1

The UIKit calls to retrieve Battery can only get a number better 0.0 to 1.0 with 0.05 steps which means 5% intervals. In order to get it with finer granularity you might have to jail break the device and setup something like this but you might not be able to submit the app. Just in case, I came across this post, which might be of interest to you.

Community
  • 1
  • 1
0

if you wanna develop for jailbroken devices, you can take a look at this example

Radu Ursache
  • 1,230
  • 1
  • 22
  • 35