March 7, 2011 Leave a comment
Compressing files in MonoTouch just got easier!
ZipArchive is taken from the Obj-C world. And it is by far one of the simplest, most elegant solutions I’ve seen for compressing files to an archive. Just open an archive, add files to compress and close it.
var zipFile = new LibZipArchive.ZipArchive();
// add more files as needed
The Obj-C library and bindings to C# can be found in the open source project monotouch-ziparchive on github.