Add or Update
[DRKeychain updateValue:@"1234567890ABCDEFG"
account:@"[email protected]"
service:@"sample"
group:@"79UJGB84V7.share"];
Get Value
NSString *value = [DRKeychain getValueWithAccount:@"[email protected]"
service:@"sample"
group:@"79UJGB84V7.share"];
NSLog(@"%@", value);
Delete
[DRKeychain deleteValueWithAccount:@"[email protected]"
service:@"sample"
group:@"79UJGB84V7.share"];
Dump items
NSArray* items = [DRKeychain getItemsWithServices:@"sample" group:@"79UJGB84V7.share"];
NSLog(@"%@", [NSString stringWithFormat:@"%@",items])
Image
DRKeychain/
DRKeychain.h
DRKeychain.m
MIT
Copyright (c) 2012 Dongri Jin