setupDefaults hook

This commit is contained in:
Kevin Renskers
2013-01-04 17:09:06 +00:00
parent d0f6e20367
commit bd977e74f8
6 changed files with 43 additions and 18 deletions

View File

@@ -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];