1
我正在使用本地身份验证在应用中显示iOS密码锁定。有谁知道有一种方法可以改变锁屏的颜色/主题吗?更改应用内密码锁定屏幕的颜色
我的锁屏已经白色背景,但我看到其他应用程序显示黑色背景 - 这是我想要的。
我的代码是:
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&error]) {
[context evaluatePolicy:LAPolicyDeviceOwnerAuthentication
localizedReason:@"Are you the device owner?"
reply:^(BOOL success, NSError * _Nullable error) {
if (error) {
[_appdelegate authFailed];
return;
}
if (success) {
[_appdelegate authSuccess];
return;
} else {
[_appdelegate authFailed];
return;
}
}];
}
感谢您寻找。