objective c - Get Battery Charge Information Programmatically -


(xcode 6, osx 10.10.3) how battery charge information of mac (charge status, battery level, cycle count, maximum charge in mah) programmatically?

hope this'll you:

  1. it uses non-approved calls, don’t post application code or may rejected!

    http://blog.coriolis.ch/2009/02/14/reading-the-battery-level-programmatically/

  2. from apple; don't worry code: https://developer.apple.com/library/ios/samplecode/batterystatus/introduction/intro.html (with complete sample code)


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -