Skip to content

Sample project that allows you to test if the app is entering the background because of a Home button press or Lock button press

Notifications You must be signed in to change notification settings

Mahesh218/ios-home-vs-lock-button

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Detecting Home button vs Lock button - iOS 7

This project describes how to detect when a user presses the home button to leave your application and when they press the lock button to put your app into the background.

It utilizes CSNotificationCenter to detect Darwin notifications.

credit goes out to wqq on stackoverflow

About

Sample project that allows you to test if the app is entering the background because of a Home button press or Lock button press

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published