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?
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?
Just set [UIDevice currentDevice].batteryMonitoringEnabled = YES
. Then you can use -[UIDevice batteryState]
and -[UIDevice batteryLevel]
.