【发布时间】:2016-10-03 11:03:04
【问题描述】:
我正在使用本地身份验证在应用中显示 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;
}
}];
}
感谢收看。
【问题讨论】:
标签: ios objective-c lockscreen