2010-04-09 85 views

回答

3

只需设置[UIDevice currentDevice].batteryMonitoringEnabled = YES。然后你可以使用-[UIDevice batteryState]-[UIDevice batteryLevel]

+0

尽管如此,不要忘记为'batteryLevel'调用'currentDevice'。 – cobbal 2010-04-09 07:43:35

相关问题