Hi I am trying to display a packaged file say .key/.pages/.numbers file to user in a UIWebView but I cant. The keynote file was created using a Keynote app from my iPad recently. I imported that file to my app using UIDocumentMenuViewController from iCloud. I tried to look into the file attributes and it turn out that the file imported is actually a "directory" not single file. Inside, it has some contents. Can anybody tell me how to go from here?
Imported packaged files ".key .numbers .pages" from iCloud using UIDocumentMenuViewController are not opening in UIWebView
181 views Asked by user2558386 At
1
There are 1 answers
Related Questions in NUMBERS
- How i can get the numbers on the left and the right of the given element?
- PHP Allow only numbers with 2 decimals
- How do you use a range of numbers in an if statement in livecode?
- How can we decide the total no. of buckets for a hive table
- PHP Convert cents to dollars
- Random Numbers Generator based on Current Time and Birth Date
- Want to format numbers greater than 20 digits in java?
- Regex not matching 6 repeated numbers
- in c#, how to independently guarantee that two machines will not net generate the same random number?
- How to round a number up and add numeric punctuation
Related Questions in ICLOUD
- CloudKit: Preventing Duplicate Records
- iCloud Core Data "no document at URL"
- Exchange plist data between 2 iPad using iCloud
- restrict sqlite-wal and sqlite-shm from icloud backup
- Submitting App with CloudKit to App Store is required Demo Account?
- Lost user data with app update using CoreData + iCloud
- iCloud and non-UIDocument files
- How to approve uploads to CloudKit
- Invite attendees for event like Sunrise
- CloudKit as a CMS using a regular web host, not sure where to begin? Is it possible?
Related Questions in KEYNOTE
- How to make a circle in Keynote using Applescript
- What's the default state of the 'include preview in document by default' option in KeyNote?
- How to save,close and exit Keynote using AppleScript?
- Applescript to set transition timers
- R, export a file to keynote
- Nested Keynote slides with Applescript
- Apple Keynote renders poorly in PDF (when seen on IOS or printed)
- How to resize a Keynote slideshow?
- Export Keynote slides to images with AppleScript
- HTML5 check if the content of a <video> remained the same for a second.
Related Questions in IWORK
- Applescript has no permissions to save file
- Convert a PDF file into CSV, Excel or Numbers format using Applescript
- Equation numbering in Pages 6.2
- pages 09 and applescript, save current file as .doc and overwrite current file
- What's the default state of the 'include preview in document by default' option in KeyNote?
- Decompressing Snappy Files Missing Stream Identifier Chunk and CRC-32C Checksum
- Enable direct transfer from iWork apps to my app
- How to access the current table in Numbers?
- How to set selection for a table in Numbers?
- Can I execute my Applescript from a menu or hotkey in an iWork app?
Related Questions in UIDOCUMENTMENUVC
- UIDocumentMenuViewController / UIDocumentPickerViewController slow to show in view
- Importing of documents via UIDocumentMenuViewController in iOS 9 stuck at loading
- How to open the Document files e.g(.pdf,.doc,.docx) in ios mobile when a button action using swift3.0?
- UIDocumentMenuViewController more button
- UIDocumentPickerModeExportToService does not show Drive or DropBox in iOS11
- Why UIDocumentMenu Delegate to self doesn't work?
- How do you create a new document using UIDocumentBrowserViewController in Xcode 9 beta 2?
- which is this controller in iOS
- UIDocumentMenuViewController crashes on iPad but not on iPhone
- Imported packaged files ".key .numbers .pages" from iCloud using UIDocumentMenuViewController are not opening in UIWebView
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I had the same problem. iWork files are zipped bundles but for some reason importing from iCloud unzips the contents first, whearas copying from the app directly via Open in ... from Number (or Pages or Keynote) works perfectly.
So what you need to do is test if the result of import is a directory, and if so zip the directory into a single file and keep the correct file extension (.number pages or .key).
This seems like a hack but it works and is best workaround I've been able to find
In Swift you can use SSZipArchive as an easy way to zip a directory