Creating password locks for an application?

I want to make a password unlock screen for my application, and I'm not sure how I would do it.

I want it to look like its version developed by Apple, which is a password lock setting screen.

alt text

How can I do something like this, where, as soon as all four digits are entered, the code is immediately checked for a pre-set password?

Thanks!

+4
source share
4 answers

Most likely you will create a view, and when all the fields are set, you will check against the known password or check the hash of the access key to the stored hash.

basically you have a saved password / hash, and you check this when you have all the fields filled in your view.

when the password is correct (either by checking hashes or password), you show the following view, otherwise you will see an error message when the password is incorrect.

+1
source

Just found a project that completely repeats this. I am going to post it here for future reference if anyone needs it. https://github.com/guicocoa/pinview

https://github.com/guicocoa/pinview

+2
source

Here is another library, just in case someone is looking for something like this: http://cocoacontrols.com/platforms/ios/controls/abpadlockscreen

+1
source

IOS 7 style code code. Full functional demo with excellent documentation showing different states (like Enable, Test, Change and Turn Off)

https://github.com/rolandleth/LTHPasscodeViewController

+1
source

All Articles