开发者

How to produce an iphone app which calculates the battery status?

开发者 https://www.devze.com 2022-12-25 23:57 出处:网络
How to produce an ip开发者_运维问答hone app which calculates the battery status? Is there a particular API that i need to use?

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].

0

精彩评论

暂无评论...
验证码 换一张
取 消