mirror of
https://github.com/zhigang1992/GVUserDefaults.git
synced 2026-04-29 12:35:09 +08:00
setupDefaults hook
This commit is contained in:
@@ -10,6 +10,13 @@
|
||||
|
||||
@implementation GVUserDefaults (Properties)
|
||||
|
||||
- (NSDictionary *)setupDefaults {
|
||||
return @{
|
||||
@"userName": @"default",
|
||||
@"userId": @1
|
||||
};
|
||||
}
|
||||
|
||||
- (NSString *)transformKey:(NSString *)key {
|
||||
key = [key stringByReplacingCharactersInRange:NSMakeRange(0,1) withString:[[key substringToIndex:1] uppercaseString]];
|
||||
return [NSString stringWithFormat:@"NSUserDefault%@", key];
|
||||
|
||||
Reference in New Issue
Block a user