2012-09-11 120 views

回答

1

可以通過使用獲得當前電池電平 - 從文檔

[[UIDevice currentDevice] batteryLevel];

-

電池水平從0.0(完全放電)至1.0(100% 帶電)。在訪問此屬性之前,請確保電池 監控已啓用。