is there any notification for unlock sreen by sliding to unlock iphone?
I work on jailbreak iphone, I want to know when user unlock the screen of iphone,is there any notification for unlock sreen by slide to u开发者_JAVA百科nlock iphone? Thanks >>>>
From apple docs: use UIApplicationDidBecomeActiveNotification. This works only if your app is running so if you want to trigger some action on a background app running in a jailbroken device this is not the right solution.
UIApplicationDidBecomeActiveNotification Posted when the application becomes active. An application is active when it is receiving events. An active application can be said to have focus. It gains focus after being launched, loses focus when an overlay window pops up or when the device is locked, and gains focus when the device is unlocked.
Availability Available in iOS 2.0 and later. Declared In UIApplication.h
精彩评论