开发者

SFAuthorizationView authorize apps preferences without changing rights

开发者 https://www.devze.com 2023-01-25 04:09 出处:网络
what if I just want to use SFAuthorizationView for \"setEnabled: YES/NO\" of parts of UI (let\'s say check boxes)? I开发者_Go百科 don\'t want to work with rights at all. I just want to know that user

what if I just want to use SFAuthorizationView for "setEnabled: YES/NO" of parts of UI (let's say check boxes)? I开发者_Go百科 don't want to work with rights at all. I just want to know that user has set the right password asociated with his username... That's all... Is there any way how to do that without setting things like AuthorizationFlags?


It sounds like you would want to set the kAuthorizationRuleAuthenticateAsSessionUser for your custom right. I don't think you can cause a prompt without authorizing rights. See the official Apple docs for more detail.

0

精彩评论

暂无评论...
验证码 换一张
取 消