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
182 views Asked by user2558386 At
1
There are 1 answers
Related Questions in NUMBERS
- Find the sum of the numbers in the sequence
- Partitions in co-lexicographic order (PARI/GP algorithm without recursion)
- Predict numbers from labeled images
- Increment number on each node with excluding one
- Ansible Increment Number on each node
- Find non numeric data for a column between duplicate key records
- Algorithm for rounding and clamping a number to specific ends
- Ahk gui does not display double digit numbers
- Using Javascript on Mac get selected row number from Numbers spreadsheet
- Peudorandom numbers in c++ not random enough
- Sensitive operations with big numbers in C++
- AppleScript: "System Events" from Terminal not working
- C++ converting binary string to decimal string
- How to convert HTML "span" + "input" elements to Number?
- Is there an easy way to get the max number from a String in PL/SQL
Related Questions in ICLOUD
- Shared iCloud album returns all assets slowly
- SwiftData synced to iCloud with one-to-many relationship between 2 models results in a crash when each model contains a reference to the other
- Apple TV Build - CloudKit plugin written in Obj-C & Swift, with C# wrapper, gives Error 1 "Response-Not-Possible"
- Netbeans project files in iCloud
- How to sync sqlite database with iCloud?
- Logging into iCloud Find My iPhone and can't detect the Email input field
- Accessing iCloud Calendar API from a NodeJS server
- VBA how to event handle ItemAdd & ItemChange both (in Outlook Calendar) for iCloud Calendar folder
- Understand different servers (v50, v95) in CloudKit Latency Telemetry
- Why did I call this method PHImageManager.default().requestImage, but the result I got was still false
- Plugin wrapper not linking
- iCloud Key-Value storage does not work for users with full iCloud
- Can an iOS app collect and merge data from multiple Apple IDs using iCloud?
- Nginx server request timeout for Safari with iCloud Private Relay
- Downloading from iCloud, files truncated, fine from other sources
Related Questions in KEYNOTE
- How to use Python keynote-parser in the Azure Functions
- Can the data of an Apple Keynote chart be changed from AppleScript?
- Convert an "8mm vintage film effect" from YouTube to a semi-transparent video (to use in Keynote)?
- Keynote: how to export all slides as one single page?
- HTML file upload don't recognize Keynote mime type
- How do I modify the position property of textItems in Keynote using JavaScript for applications?
- Running Macro or Javascript in Keynote?
- Apple Keynote renders poorly in PDF (when seen on IOS or printed)
- Populating images on a Keynote file using Javascript for Automation (JXA)
- AppleScript Keynote hangup after opening a illegal pptx file
- How can I tell which fullscreen Keynote window is the presentation?
- How to Ignore the last cell with data in an excel formula
- How could I use applescript to play keynote slids?
- Format keynote slides with specific conditions
- How do I select one specific image on the current slide in the current Keynote document?
Related Questions in IWORK
- How to make a range for tail rows on a categorized table in Numbers with JXA scripts?
- Export embedded media from Apple Numbers to Path AppleScript
- I can't get Delete Row/Remove to work in Mac Numbers with JXA
- Decoding an .iwa file
- Applescript check if specific Numbers sheet exists
- Exporting PDF's in Numbers with AppleScript
- How do I select one specific image on the current slide in the current Keynote document?
- How do I launch an Apple Pages document from my iOS application?
- Pages export to Microsoft Word failing with Applescript
- How to convert this formula from Numbers to Excel: INDIRECT(ADDRESS(MATCH($I;Sheet2::Table 1::B);3;4;TRUE;"Sheet2::Table 1"))?
- Apple Script Keynote Auto-Loop
- How to add a new page to the bottom of a Pages document with AppleScript
- Generating thumbnail for iWork documents in swift
- How extract iWorks suite mimetype with Exiftool
- Applescript get the value as string and put the variable
Related Questions in UIDOCUMENTMENUVC
- How to open the Document files e.g(.pdf,.doc,.docx) in ios mobile when a button action using swift3.0?
- UIDocumentPickerModeExportToService does not show Drive or DropBox in iOS11
- which is this controller in iOS
- How do you create a new document using UIDocumentBrowserViewController in Xcode 9 beta 2?
- UIDocumentMenuViewController more button
- UIDocumentMenuViewController dismisses presenting view controller
- google drive options is not visible in UIDocumentMenuViewController in IOS10
- UIDocumentMenuViewController crashes on iPad but not on iPhone
- Why UIDocumentMenu Delegate to self doesn't work?
- UIDocumentMenuViewController gets crash
- Importing of documents via UIDocumentMenuViewController in iOS 9 stuck at loading
- Custom image for UIDocumentMenuViewController only shows blue box
- Imported packaged files ".key .numbers .pages" from iCloud using UIDocumentMenuViewController are not opening in UIWebView
- UIDocumentMenuViewController / UIDocumentPickerViewController slow to show in view
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?
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