How do I zip files programmatically in iOS? [duplicate] - ios

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Zip and UnZip a file programmatically in iphone?
I want to zip images and audio programmatically in my app.
How can I do that?

Try ZipKit. Put this as part of your build and then
#import <ZipKit/ZipKit.h>
After this you are good to go.

Related

How to use custom font files which are added in document directory in ios [duplicate]

This question already has answers here:
iOS: Programmatically add custom font during runtime
(4 answers)
Closed 4 years ago.
i have tried to add custom fonts in application at run time.
so i have added those .ttf files into the document directory.
Now i want to access those files with font name in my application.
so please Suggest how to add custom fonts in Application at run time.
Thanks.
I don't think you can do this. You need to have the font on compile time. Added in the resource and also it needs to be mentioned in info.plist.
Please see the below link from apple on how to add custom font in app. There is no way other then this.
https://developer.apple.com/documentation/uikit/text_display_and_fonts/adding_a_custom_font_to_your_app

Calling other tools from my tool [duplicate]

This question already has answers here:
Compression API on the iPhone
(8 answers)
Execute a terminal command from a Cocoa app
(12 answers)
Closed 5 years ago.
I'm making a tool that finds folders with specific name and I want to compress those folders using the zip command
How can I run the zip command from my tool to compress the folders?

How to delete the Localizable.strings from base.lproj [duplicate]

This question already has answers here:
In iOS how can I remove languages from Localizable.strings with Xcode
(2 answers)
Closed 7 years ago.
I don't need it, but when I delete it, I got a compile error.
So is there a way to do that?
Uncheck the 'Base' checkbox on the right panel.

How to do PngCrush for my images of iOS app? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
What is PngCrush in iOS?
I'm having a doubts about image optimisation technique of iOS apps Pngcrush
My doubt is,
Is pngcrush built-in to xcode or do we need to explicitly download pngcrush tool and optimise our images?
If we want to do it explicitly how can we achieve this?
This question may solve your problem: Skipping the 'CompressResources' build step for XCode iPhone apps
Another thing is there might chances that the PNGs are of type JPG's and the Extentation has been modified with png.

How to import data from excel sheet in iOS programmatically [duplicate]

This question already has answers here:
Read data from Excel file in Objective-C (iPhone) [closed]
(5 answers)
Closed 9 years ago.
I am working for a iOS project whose data source is an excel sheet. How can I convert the excel sheet to csv or plist?
I just had a similar issue recently. I saved my excel files to csv format, and then I downloaded the code described in this link:
http://blog.danilocampos.com/2009/12/04/convert-a-csv-into-a-plist-file/
which is for a mac app that converts csv files to plist files. I had to edit the
- (IBAction)executeConversion:(id)sender
method in AppController.m to get the plist in the format I wanted, but it was straightforward. It may not be the best solution, but it was the best I could find.

Resources