Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
iOS sample demonstrating how to prevent the device display from powering down when plugged in.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Type||Name||Latest commit message||Commit time|
|Failed to load latest commit information.|
This project demonstrates the following features: * Determining whether or not a device is plugged in * Receiving notifications when the power state changes * Enabling/disabling the Auto-Lock based upon the power state The project contains a Settings bundle to allow the user to dictate the behavior of the application when it is plugged in. If you have any questions about this source code, you can contact me in the following ways: * Twitter: neilco * Email: email@example.com * iChat: neilcowburn You are free to use this source code in both commercial and non-commercial applications. This source code is to accompany the blog post at the URL below: http://www.neilcowburn.com/2009/07/28/disable-auto-lock-on-the-iphone-when-plugged-in