ios - How to zip a folder using ZipKit? -


id zip folder using zipkit??

i cant seem locate documentation usage of functions in zipkit library. can 1 explain method folder zipping?

zkfilearchive *archive = [zkfilearchive archivewitharchivepath:filepath]; [archive deflatedirectory:param1 relativetopath:param2 usingresourcefork:no]; 

what needs passed in param1 , param2??i dont understand function call here?

it great if 1 post example it?

thank you!

looking @ answer in related question, here's example work with.

your param1 folder (with it's path) archived, , relative path parent folder.

nsstring *zipfilepath = @"/documents/zipped.zip"; zkfilearchive *archive = [zkfilearchive archivewitharchivepath:zipfilepath]; nsinteger result = [archive deflatedirectory:@"/documents/myfolder" relativetopath:@"/documents" usingresourcefork:no]; 

it nice if zipkit had better documentation the limited info has.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -