The author testimonials

This National Day due to a variety of reasons, not too stable, move, certificate, east run west run, busy root is not like in the festival…. But anyway, pick the last day to write. Finally: If you have better suggestions or dissatisfaction with this article, please contact me, I will refer to your opinions and then modify, contact me, please note Apple Pay if you feel good, I hope you can also reward ~ hee hee ~ WISH you a happy learning ~ thank you ~

Introduction to the

Touch ID is apple’s fingerprint recognition technology. Apple stores the user’s fingerprint data in a secure area of the processor, fully protecting the user’s data security. In addition, Apple has another line of security for fingerprint data, protecting user data in an unprecedented level of hardware technology.

It’s very simple when it comes to integration, basically there’s not much to write, so I’ll just write it here.

PS: Since Touch ID can only be debugged on the real machine, the emulator can’t be used for debugging.

Create a project

Just create a new project, name it SimpleTouchID, drag a UIButton in the Storyboard and associate it with the ViewController.

Once the association is complete, import the LocalAuthentication dependency library, and don’t forget to import it in the ViewController.



Achieve Touch ID verification

The code here is very simple and I won’t go into details here, but the only difference is that there are three new checkable states that have been added since iOS 9, and you can see the comments in the Demo.



The final result

The project address

Project address: github.com/CainRun/Sim…

The last

It takes a lot of brain work to code words