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 - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -