2010-04-09 86 views

回答

3

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

+0

儘管如此,不要忘記爲'batteryLevel'調用'currentDevice'。 – cobbal 2010-04-09 07:43:35

相關問題