Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zip and UnZip a file programmatically in iOS?

How can we zip and unzip a file through coding?

like image 274
RAMAN RANA Avatar asked Feb 17 '11 14:02

RAMAN RANA


People also ask

How do I unzip a ZIP file on iOS?

Open the Files app, then find the ZIP file or archive you want to uncompress. Tap the ZIP file or archive. A folder is created containing the files. To change its name, touch and hold on the folder, then tap Rename.

How do I unzip a file in iOS Swift?

Using this library you can use this line: let unzipDirectory= try Zip. quickUnzipFile(filePath) //to unZip your folder. If you want more help , check the repository.

Can iOS open ZIP files?

In iOS 13 and later, Apple's native Files app supports the common ZIP compression format, which means you can now uncompress zipped files downloaded in Safari, or compress several files into one neat zipped package ready for sharing, right on your iOS device. Keep reading to learn how it works.

How do I open a ZIP file in Xcode?

Importing into XcodeOpen Xcode and select Open Another Project or File, Open. Open the folder you unzipped from your Dropsource download and locate the file with “. xcodeproj” extension in the root directory. Select the file and click Open.


1 Answers

Take a look at this SO questions.

And here is a library ziparchive

ziparchive An Objective C class for zip/unzip on iPhone and Mac OSX

like image 184
Adnan Avatar answered Sep 25 '22 02:09

Adnan