0

In my application I can find the battery level using [[UIDevice currentdevice] batterylevel], it is working only in 3.0 or later versions. I don't know how to find the maximum capacity and currently available capacity of battery. Also, how can I find the battery level and battery status in iOS 2.0?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
sirisha
  • 41
  • 1
  • 1
  • 8
  • possible duplicate of [iphone: Calculating battery life](http://stackoverflow.com/questions/1469549/iphone-calculating-battery-life) – jscs Jun 20 '11 at 17:46

1 Answers1

1

There is no publicly available way to find the battery capacity, and no way to find the charge level before iOS 3.0. If you want to use private APIs, you might be able to use code such as this.

Anomie
  • 92,546
  • 13
  • 126
  • 145