开发者

How to find maximum capacity and current available capacity of battery in iphone?

In my applicati开发者_运维技巧on I can find the battery level using [[UIDevice currentdevice] batterylevel], it is working only in 3.0 or later versions. I don't know how to find the maximum capacity and currently available capacity of battery. Also, how can I find the battery level and battery status in iOS 2.0?


There is no publicly available way to find the battery capacity, and no way to find the charge level before iOS 3.0. If you want to use private APIs, you might be able to use code such as this.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜