Sha256: e01598afd635027e70b12a2f7babd19885d1c430234f7ccb877e2ddd1c7d0d50
Contents?: true
Size: 592 Bytes
Versions: 2
Compression:
Stored size: 592 Bytes
Contents
#import "AppGroup.h" static NSString * const kAppIdentifier = @"jp.mzp.app_group.example"; @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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-app_group-0.2.0 | Example/Pods/CocoaPodsAppGroup/AppGroup.m |
cocoapods-app_group-0.1.0 | Example/Pods/CocoaPodsAppGroup/AppGroup.m |