我正在开发一个application.In,如果我将解压缩文件夹保存在文档目录中,那么该信息将通过用户使用iExplorer.So访问,我想为解压缩files.SO设置密码,请告诉我如何设置解压缩文件的密码。
发布于 2012-09-11 12:58:14
如果你要使用ZipAcrhive。然后使用以下方法保存带有密码的zip文件:
-(BOOL) CreateZipFile2:(NSString*) zipFile Password:(NSString*) password;
然后您可以使用以下方法打开它:
-(BOOL) UnzipOpenFile:(NSString*) zipFile Password:(NSString*) password;
和
-(BOOL) UnzipFileTo:(NSString*) path overWrite:(BOOL) overwrite;
https://stackoverflow.com/questions/12352318
复制相似问题