Bordertown Labs Blog

Notes from Bordertown Labs with posts regarding software development for the iPhone, Ruby on Rails, tips and code.

» Contact with inquiries.


Visualize your geodata in augmented reality with 3DAR by Spot Metrix.


Posts tagged "compression"

Jan 27th, 2010 @ 5:08 am

Objective-C class for zip/unzip

This works great on the iPhone.

ZipArchive* za = [[ZipArchive alloc] init];
if ([za UnzipOpenFile:@"/Volumes/data/testfolder/Archive.zip"]) {

  BOOL ret = [za UnzipFileTo:@"/Volumes/data/testfolder/extract" overWrite:YES];

  if (NO == ret) {
  }
  
  [za UnzipCloseFile];
}

[za release];
  




Comments (View)

 


 

Archive · RSS · Theme by Autumn