How to produce an iphone app which calculates the battery status?
How to produce an ip开发者_运维问答hone 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]
.
精彩评论