有没有iOS的unrar库?

我想在我的iphone应用程序中包含unrar文件选项。

我已经尝试https://github.com/ararog/Unrar4iOS但这个库不完整(一些function还没有实现像 – (BOOL)unrarFileTo:(NSString *)pathoverWrite:(BOOL)覆盖)

谢谢。

我结束了使用Unrar4ios,但我需要写自己的function,实际上提取rar文件:

-(BOOL) unrarFileTo:(NSString*)path overWrite:(BOOL)overwrite { int RHCode = 0, PFCode = 0; [self _unrarOpenFile:filename mode:RAR_OM_EXTRACT]; while ((RHCode = RARReadHeaderEx(_rarFile, header)) == 0) { if ((PFCode = RARProcessFile(_rarFile, RAR_EXTRACT, (char *)[path UTF8String], NULL)) != 0) { [self _unrarCloseFile]; return NO; } } [self _unrarCloseFile]; return YES; } 

这可能有所帮助: https : //github.com/ararog/Unrar4iOS

因为Objective C是C的超集,所以unrarlib库应该为你工作。