tags:

views:

109

answers:

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?

+2  A: 

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

Tom
Don't forget to call `currentDevice` for `batteryLevel` too though.
cobbal