美文网首页
ios资源文件加密保护

ios资源文件加密保护

作者: sunny冲哥 | 来源:发表于2018-02-27 13:57 被阅读17次
    • (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资源文件加密保护

          本文链接:https://www.haomeiwen.com/subject/stzpxftx.html