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

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.

Related

Swift: Does using Swift in An iOS project have to pack libswiftCore.dylib in the ipa file? [duplicate]

This question already has answers here:
IPA generated by swift is so big, about 5MB
(2 answers)
Closed 7 years ago.
I only add one Swift class in my iOS project, and after archive the ipa file, I see a 6MB file named libswiftCore.dylib under a folder named Frameworks, this will make my ipa file larger, is there any way to exclude this libswiftCore.dylib file?
Yes, at the moment there's no way to ship application that uses swift without that extra dylib.
The reason is that the internals of swift runtime/std library are not finalized yet and so to avoid backward compatibility problems between different versions the specific dynamic library version has to be shipped with every app that uses swift. That should be fixed some time in future.

Is it possible to read epub file without unzipping in iOS [duplicate]

This question already has answers here:
How do I read image files directly from a zip without extracting to disk?
(2 answers)
Closed 8 years ago.
I have an epub file saved with me in documents directory.
Can anybody suggest me a way to read the data and chapters without unzipping the file.
I know its possible in Android so there must be a way out for apple too.
Can anybody throw some light on this.
Thank you!!
An .epub file is just a .zip file. It contains a few directory files in XML format and the actual book content is usually XHTML.
As a walk around, try to access the META-INF/container.xml, if you did it, you can read it without any unzipping
More info: Epub Format Construction Guide
Got the link which helped me :
https://github.com/flyingdolphinstudio/Objective-Zip
Thanks to : Ben Swanson & Petesh :)

Objective C ePub framework

I am looking to implement an eBook reader app. I have found an open source PDF viewer that suited my needs. I now would like to know if there are any open source ePub viewers that I could leverage into the app.
Does anyone know of open source ePub viewers?
Try this https://github.com/fedefrappi/AePubReader
To provide a more up-to-date answer for those finding this question six years later, two libraries that allow epub parsing & display on iOS are:
Folio Reader and
Readium (specifically, the Streamer subproject)

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

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.

generating iWork Numbers file on iOS

Has anyone had any luck with generating a spreadsheet file in iWork Numbers format on iOS? At least is there any documentation on the file format?
There is not a publicly documented file format. It can open CSV and some Excel file formats, as listed here on Apple's Knowledge Base.

Resources