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:
You can find ASCScreenBrightnessDetector on Github here.
Thanks to Chris for the submission.
- Open Source iOS Library For Detecting When A User Is Taking A Screenshot
- iOS Image Processing Library Allowing You To Define Custom Image Filters Using A JSON File
- Open Source: UIButton Add-On Allowing Customized Appearance Using Core Image Filters
- NSDate Add-On Category For Easily Obtaining Locale Adjusted Date Information
- Tutorial: How To Implement The Parallax Effect Of The iOS 7 Home Screen
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.