The article turns to my blog: https://cainluo.github.io/14758230794995.html
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 and name it **SimpleTouchID, drag a UIButton in the Storyboard and associate it with the ViewController**.
After the association is complete, import the **LocalAuthentication dependency library, and don’t forget to import it in ViewController**.
Achieve Touch ID verification
The code here is very simple and I won’t go into details here. The only difference is that there are three new checkable states since iOS 9. You can see the comments in Demo**.
The final result
The project address
The address of the project: https://github.com/CainRun/SimpleTouchID