Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dismiss passcode view #68

Closed
MaxHasADHD opened this issue Jun 30, 2014 · 6 comments
Closed

Dismiss passcode view #68

MaxHasADHD opened this issue Jun 30, 2014 · 6 comments

Comments

@MaxHasADHD
Copy link

Is there a way to dismiss the lock screen? I haven't found any method and calling dismissViewControllerAnimated dismisses the view controller that presented the lock screen. Cancel button is a bit useless If no way to dismiss the lock screen?

@ddaddy
Copy link
Contributor

ddaddy commented Oct 6, 2014

I'm also looking for a way to dismiss this. Did you find one?

@orschaef
Copy link

No solutions here? Can not understand how you can use this in productive code with no way of dismissing the lock screen...

@rolandleth
Copy link
Owner

I don't really see a scenario where you want to close the lock screen without having a correct passcode entered, which is why I didn't add any methods for it. You can make _dismissMe public, if you really want to.

@ddaddy
Copy link
Contributor

ddaddy commented Oct 23, 2014

I had a use for this. When the delegate methods logoutButtonWasPressed & maxNumberOfFailedAttemptsReached were called, I wanted to close the passcode and take my app a different route.

@orschaef to get this working I added - (void)closePasscode; to the .h then

- (void)closePasscode {
    [[LTHPasscodeViewController sharedUser] _dismissMe];
}

to the .m

Also for my need I had to comment out these observers, I think that may have been for my separate TouchID implementation though.

//    [[NSNotificationCenter defaultCenter]
//     addObserver: self
//     selector: @selector(_applicationDidEnterBackground)
//     name: UIApplicationDidEnterBackgroundNotification
//     object: nil];
//    [[NSNotificationCenter defaultCenter]
//     addObserver: self
//     selector: @selector(_applicationWillResignActive)
//     name: UIApplicationWillResignActiveNotification
//     object: nil];
//    [[NSNotificationCenter defaultCenter]
//     addObserver: self
//     selector: @selector(_applicationDidBecomeActive)
//     name: UIApplicationDidBecomeActiveNotification
//     object: nil];
//    [[NSNotificationCenter defaultCenter]
//     addObserver: self
//     selector: @selector(_applicationWillEnterForeground)
//     name: UIApplicationWillEnterForegroundNotification
//     object: nil];

@rolandleth
Copy link
Owner

Hmm, that's true :)

I will add that in the next version.

@rolandleth rolandleth reopened this Oct 23, 2014
@rolandleth
Copy link
Owner

Added in 3.3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants