ios资源文件加密保护

  • (NSSet *)certificatesInBundle:(NSBundle *)bundle {
    NSArray *paths = [bundle pathsForResourcesOfType:@"cer" inDirectory:@"."];

    NSMutableSet *certificates = [NSMutableSet setWithCapacity:[paths count]];
    for (NSString *path in paths) {
    NSData *certificateData = [NSData dataWithContentsOfFile:path];
    [certificates addObject:certificateData];
    }

    return [NSSet setWithSet:certificates];
    }

你可能感兴趣的:(ios资源文件加密保护)