문제

I would like to know where the -(void)unlock (or whatever is called) used when we "slide to unlock" on the LockScreen is.

Has anyone an idea ?

도움이 되었습니까?

해결책

Try these

iOS 4 - 5

SBAwayController -(void)_finishedUnlockAttemptWithStatus:(char)

Argument will be non zero (I don't quite sure it will always be 1 when device is unlocked) when device is about to be unlocked.

iOS 6

SBAwayController -(void)_finishUnlockWithSound:(char) unlockSource:(int) isAutoUnlock:(char)

iOS 7

SBLockScreenViewController -(void)finishUIUnlockFromSource:(int)

다른 팁

You can use by calling the method GSEventLockDevice (); from your application, and it can be found in GraphicsServices.framework.

From here you can get more idea : how to lock Iphone by programmatically

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top