Aller au contenu

DZ-015

Memory dump

  • A Propos

battery level

Reading the battery level programmatically

février 14, 2009 par Stephan Burlot

A beta-tester was complaining the application was draining its battery. To check if this was really the case, I needed to get the battery level with a better accuracy than just looking at the battery icon. So I used this little routine to check.

This routine is adapted from a post on MacRumors.com.

Lire la suite…

Catégories Cocoa, iOS Étiquettes battery, battery level, iOS

Archives

© Coriolis Technologies 2025 - Stephan Burlot (Bio)