dispatch_async(dispatch_get_main_queue(), ^{
NSString * service = @"AppName";
NSString * account = @"DeviceIdentifier";
NSString * str = [SSKeychain passwordForService:service account:account];
if (str && str.length > 0) {
} else {
str = UIDevice.currentDevice.identifierForVendor.UUIDString;
[SSKeychain setPassword:str forService:service account:account];
}
});
}
09-13
07-07
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交