-1

How to produce an iphone app which calculates the battery status? Is there a particular API that i need to use?

Has anyone got a link to any online tutorials?

jimmym715
  • 1,512
  • 1
  • 16
  • 25

1 Answers1

3

Just set [UIDevice currentDevice].batteryMonitoringEnabled = YES. Then you can use -[UIDevice batteryState] and -[UIDevice batteryLevel].

Tom
  • 3,831
  • 1
  • 22
  • 24