iOS Library Allowing You To Easily Detect And Make Adjustments On Screen Brightness Changes

A couple of months ago I mentioned a handy library allowing you to easily grab a large amount of device details about a users iOS device such as battery, memory, disk, and networking information.

Here’s a library from Andre Schneider called ASCScreenBrightnessDetector that allows you to easily detect the brightness of a screen and also provides some useful delegate methods to notify you when the screen brightness changes, and so you can easily make appropriate style changes.

This can be a pretty good way to detect if a user is using their device at night or in the day so you can make appropriate theme changes.

Here’s an animation from the read me showing how one could use brightness detection to change an app theme based on detected brightness:
ACScreenBrightnessDetector

You can find ASCScreenBrightnessDetector on Github here.

Thanks to Chris for the submission.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: iOS Library Allowing You To Easily Detect And Make Adjustments On Screen Brightness Changes

©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *