Comments (4)
@PanosSakkos You have to add an observer for the notification. The documentation is a little misguiding and providing wrong name.
You can put this in your first root controller's viewDidLoad.
NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(logoutApp(_:)), name: "passcode.lock.incorrect.passcode.notification", object: nil)
Then you have to implement the logoutApp function. This is just an example.
func logoutApp(notification: NSNotification) {
// Destroy sensitive stuff.
let delegate = UIApplication.sharedApplication().delegate as! AppDelegate
self.presentedViewController?.dismissViewControllerAnimated(false, completion: {
delegate.passcodeLockPresenter.dismissPasscodeLock(animated: true)
})
}
from swiftpasscodelock.
@antonigiske thanks for the reply!
For some reason the dismissPasscodeLock method is private in my PasscodeLockPresenter.
I checked the repo here and the source code is different, with this method offered as public.
I did a carthage update but I still don't have the latest source code
Any ideas?
Thanks!
:panos
from swiftpasscodelock.
@PanosSakkos I don't know. I used CocoaPods, and its public with me.
from swiftpasscodelock.
Got it from CocoaPods and it worked, thanks! 👍
from swiftpasscodelock.
Related Issues (20)
- Troy
- Cannot display passcode on app open with SceneDelegate
- Iphone 6 and Iphone 6S dots and keypad not increase their size
- Swift 3 Update :D HOT 11
- Swift 2.3 update? HOT 1
- PasscodeLock App Delegate preventing SVProgressHUD from showing HOT 1
- Support both passcode and TouchID at the same time like iphone passcode lockscreen HOT 2
- Carthage build issue on swift 3.1 HOT 5
- Pre-set password? HOT 1
- App rejected with passcode lock HOT 3
- Can I pass segue from passcode viewController? HOT 5
- UI looks of SwiftPasscodeLock will get your app rejected from the app store HOT 3
- Landscape mode not supported
- Swift 4 HOT 3
- Simultaneous accesses to *, but modification requires exclusive access HOT 8
- crash when set password HOT 2
- Not maintained? HOT 2
- T
- New
- Perforce branch might be sync'ed multiple times with different
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftpasscodelock.