Search code examples
iosobjective-cjailbreaktheos

Displaying an UIAlertView When A User Unlocks iPhone


I have recently been having some trouble with iOS 7 and unlocking. I am trying to get an UIAlertView to display every time a user unlocks his/her device.

I have gotten the same thing to work with respringing. I am using iOSOpenDev with the logos template. Does anyone know how to achieve an Alert right after unlocking with iOS 7's SBLockscreenViewController, or with something else?


Solution

  • Check out these methods from SBLockScreenViewController:

    -(void) prepareForUIUnlock;
    -(void) finishUIUnlockFromSource:(int)source;
    

    Both should work fine.