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 :)
Related
I am creating an app where users can scan objects in 3D, I have a scene which I can easily save in documents directory and share it in .scn format, but I want to share this .scn file as .usdz file via UIActivityController.
Basically I am using this library https://github.com/StandardCyborg/StandardCyborgCocoa
In this library, a scene file is saved as .gltf format, but I want to share this .gltf file which is not supported on iOS devices. Apple only support .usdz file format. So, I want to convert this .gltf file into .usdz file before sharing.
I have been searching different solutions over internet for a week, but nothing is working till now.
Can anyone help me to resolve this issue?
Any help is greatly appreciated.
It's not documented, but SCNScene's write method works with a .usdz URL, at least since iOS 14.7. This is what I'm using in my app.
I´m reading metadata from mp3 file, by this way iOS AVFoundation: How do I fetch artwork from an mp3 file? and works perfectly.
when the file is mp3 and doesn´t have artwork, or title, i'm getting NULL values.
I need, when the file haven't metadata like artwork or title, to write my own metadata in the mp3 file, put my own artwork and my own title.
How i can write metadata in mp3 local files on iOS7?
Thanks in advance.
Well as no one answered.
I found the solution, I including this library in the project: https://github.com/rjyo/libid3-ios, which allows you to edit the ID3 tags of any mp3 file.
Some modifications I had to do to make it work properly with xCode5 and iOS7.
Instead - Step 4 (Quick Start (Xcode 4) repo instructions):
Add the following to Link Binary With Libraries list
libiconv.2.4.0.dylib
Libstdc++.6.0.9.dylib
libz.1.2.5.dylib
libid3.a
Once you've successfully added the libid3-ios libraries in your project, read this question iOS use ID3Lib to edit ID3 tags from mp3 files in the NSDocsDir, for understand the libid3 API faster.
Remember you should use .mm extension instead of .m for objective-c containing c++ code.
I would like to examine differences in the iOS .strings files using Gerrit, but it doesn't seem to be able to handle their UTF-16 format. Does anyone have a solution for this? Or a workaround?
Although I haven't needed to configure .strings files before, I think the solution is to set the mime-type to safe. See http://gerrit-documentation.googlecode.com/svn/Documentation/2.6/config-gerrit.html#_a_id_mimetype_a_section_mimetype.
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)
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.