generating iWork Numbers file on iOS - 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.

Related

How to export and share a .gltf file as .usdz file in iOS through code? [duplicate]

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.

Is there a way to find file type?

I would like to get the type of a file without using the extension, is there a way to use the metadata of a file to distinguish if it is a video file or if it isnt?
I have tried using extensions but I find searching each file extension and comparing it with a list of extensions is quite time consuming.
Yes it is possible to determine file type without using the file extension. You can do this by reading the file header also sometimes referred as file signature which occupies first few bytes of the file.
How many bytes do file header/signature occupy? This depends from file type to file type. So you should check the internet for more detailed information about the file header/signature for specific file type you want to identify.
You can find list of some more popular signatures List of file signatures - Wikipedia
PS: Most program stopped relying only on file signatures for determining file way back when first Windows came out. The main reason for this was the fact that since in the beginning file extensions were limited to three character length (limit of the old file systems like old FAT8 or FAT16) world quickly ran out of possible file extensions so multiple programs began to use same file extensions but used completely different file types. So by storing file header/signature at the beginning of the file you would no longer be limited by this file system limitation.

iOS- How to translate english (.string file) language in different languages at a time?

I am facing a problem. I am working on an app which is supported around 30 languages. I have tried google toolkit translate (https://translate.google.com/toolkit/ ) but it is not working properly. For example let assume in .string file I have 40 lines of codes. If I translate language using google toolkit then it converts just 4-7 lines sometimes 8-9 times and so on. Others all lines it skips. Please let me know how can we translate English language in multiple language (around 30) at a time. Please share Any tool name or site name. Thanks guys.
Here is a project which can convert your localization.strings file to any language using google translation api.
You just need to copy paste all the data of localization.string file into a txt file. and add that txt file in app bundle file and specify file name in Constants.h file. Also mention the google translator api key. You can also mail the translated file.
Localization using google transtion iOS Project Link

Write metadata to mp3 local file

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.

Using afconvert from iOS

Does anyone know if it is possible to convert a sound file in the Documents directory from within an app? I have a recorded sound file that will be available in iTunes File Sharing that I need to convert. Is afconvert available from within iOS?
Thanks
I'm not sure from what format to what format you want to convert to, but converting audio during runtime is not as simple as the command-line afconvert tool.
Check out Apple's sample projects iPhoneACFileConvertTest or ConvertFile. I think these would be good starting points if you want to convert audio in your app.
For what it's worth, afconvert is just a handy command-line interface to the features of the ExtAudioFile API which you can find in -- Using this API you can convert from any supported file format/audio format combination TO any supported file format/audio format combination.

Resources