Greetings for the Day Everyone!!
I want iOS devices with iOS7 version to detect the lock. I did research a lot in it, but didn't find any solution for iOS7.
For Example,
Programmatically lock iPhone screen in iOS 7
I have implemented the same feature for iOS6 but it is not working for iOS7.
Checkout the working snipppet for iOS6
// coming back in the foreground
[[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationWillEnterForegroundNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note)
{
// if user lock the screen
if ([[UIApplication sharedApplication] applicationState] == 1)
{
// coming back after unlocking screen..
}
}];
I have gone through many sources and found there isn't any solution for this in iOS7. Therefor I post the individual question over here, let me know if any one knows how to detect lock event on iOS7 enabled device.
Any help will be appreciated!