I ended up using Unrar4ios, but I needed to write myself a function that actually extracts the rar file:
-(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; }
Alex1987
source share