更新时间:2023-02-27 07:48:08
希望对您有所帮助:
它使用未经批准的调用,因此请勿使用此代码发布您的申请,否则您可能会被拒绝!
It uses non-approved calls, so don’t post your application with this code or you may be rejected!
http://blog.coriolis.ch/2009/02/14/reading-the-battery-level-programmatically/
来自苹果;所以不要担心这个代码:https://developer.apple.com/library/ios/samplecode/BatteryStatus/Introduction/Intro.html(附完整示例代码)
From Apple; so don't worry about this code: https://developer.apple.com/library/ios/samplecode/BatteryStatus/Introduction/Intro.html (With complete sample code)