Sha256: bc20019a9c1d6dcba7eef865c1177f560ffdf0a0741dc4c2557a237a1e1c390a
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
#import "AppGroup.h" static NSString * const kAppIdentifier = @"<%= store.read :app_group %>"; @implementation AppGroup + (NSString *)appGroupID { return [NSString stringWithFormat:@"group.%@", kAppIdentifier]; } + (NSString *)pathForResource:(NSString *)subpath { NSString *containerPath = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:[self appGroupID]].path; return [containerPath stringByAppendingPathComponent:subpath]; } + (NSUserDefaults*)userDefaults { return [[NSUserDefaults alloc] initWithSuiteName: [self appGroupID]]; } @end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-app_group-0.1.0 | templates/AppGroup.m |