How to use system build-in passcode screen to authenticate my App when user clicks Enter Password

我是研究僧i 提交于 2019-12-05 17:15:59

You cannot do that. What you can do is use that option to show your own password screen. In your reply block you check the NSError object and switch off the fallback code.

....replyBlock:^(BOOL success, NSError *error) {

        if (error)
        {
            switch (error.code)
                case LAErrorUserFallback:

Now here you can do whatever your app wants to do for app specific, not device specific, authentication. (Basically, you can do whatever you did before you had Touch ID available.)

Update:

See NicolasMiari's comment, which refers to https://www.secsign.com/fingerprint-validation-as-an-alternative-to-passcodes/ which may have a solution.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!