SecItemCopyMatching for Touch ID without passcode fallback

前端 未结 6 2117
抹茶落季
抹茶落季 2020-12-29 20:36

I am using SecItemCopyMatching to fetch a keychain item protected by Touch ID.

However, if Touch ID unlocking fails (or the user selects \"Enter Passcod

6条回答
  •  不知归路
    2020-12-29 20:57

    You can hide/customize the "Enter Password" option by setting:

    LAContext *context = [[LAContext alloc] init];
    context.localizedFallbackTitle = @"";
    

    and the option will disappear, or:

    LAContext *context = [[LAContext alloc] init];
    context.localizedFallbackTitle = @"Disable TouchID";
    

    to customize the option text. While I know this isn't exactly what the OP was asking, it's most certainly related and could "fallback" into wanting minds.

提交回复
热议问题