Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments