Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的 iPhone 中获得 1% 的准确度后电池电量的变化。我想迅速做到这一点。
在 iOS 8+ 上使用
UIDevice.currentDevice().batteryLevel