Questions tagged [uidocumentbrowservc]

44 questions
8
votes
3 answers

Document Creation with UIDocumentBrowserViewController

The documentation for documentBrowser(_:didRequestDocumentCreationWithHandler:) says, "Create a new document and save it to a temporary location. If you use a UIDocument subclass to create the document, you must close it before calling the…
user3739999
7
votes
0 answers

Google drive showing custom UTI files dimmed in UIDocumentBrowserViewController controller

We have created custom UTI of the file type in XML format for our iOS app. It is working fine for all other cloud service provider except for google drive. We are using UIDocumentBrowserViewController and defined our custom UTI in the app.plist…
Pranjal
  • 101
  • 5
5
votes
5 answers

Having Trouble Getting the UIDocumentBrowserController to open docs in a Document based app

I've been working on a new Document-based app, and was super glad about the new UIDocumentBrowserController...trying to roll my own solution for the document browser UI was tricky! I'm having some trouble getting the browser to open documents after…
4
votes
0 answers

UIDocumentPickerViewController error after closing

I am using a DocumentPickerViewController to import a document in my app. The picker does it's work, there are no bugs and no crashes but every time after a document is picked or the view controller is canceled I get a log with the following…
4
votes
1 answer

Documents never showed up in the "Recent" tab

I have an document-based iOS app which adopts the iOS 11's UIDocumentBrowserViewController. And it declares its own document type, which is a package file that conforms to com.apple.package. (Here's the link to the app on App Store, and the package…
Robin
  • 61
  • 6
3
votes
1 answer

How do I specify a file type for importing .obj files?

I'm trying to get my app to recognize .obj files for importing. I've tried to follow the instructions in this WWDC video. I've tried specifying as both an Imported UTI, and an Exported UTI. Neither causes the file to be openable in…
Taylor
  • 5,871
  • 2
  • 30
  • 64
3
votes
1 answer

UIDocumentBrowserViewController without iCloud

Apple says that in order to display your app's documents in the Files app, your Info.plist must turn on "Supports document browser" on the one hand, or "Application supports iTunes file sharing" and "Supports opening documents in place", on the…
matt
  • 515,959
  • 87
  • 875
  • 1,141
3
votes
3 answers

UIDocumentBrowserViewController empty

I'm building an app using a UIDocumentBrowserViewController. All was working fine (locations and documents appeared, and were creatable, selectable) All of a sudden, the document browser is showing up empty. No locations, no documents… Prior to…
Ashley Mills
  • 50,474
  • 16
  • 129
  • 160
2
votes
1 answer

UIDocumentBrowserViewController ignoring Document Type (com.apple.pkpass) on iOS13 device

When running on an iOS13 (beta 5) device, UIDocumentBrowserViewController does not allow selection of Document Type "com.apple.pkpass" (Wallet PKPass) previously set up in the Target's settings. Same project works fine on an iOS12 device. To…
mmklug
  • 2,252
  • 2
  • 16
  • 31
2
votes
2 answers

UIDocumentBrowserViewController.revealDocument not working as expected

The issue involves sharing a document with my app using the "Copy to ...". The result of that action is a call to: //TODO: This is where we save to the documents folder I beleive. func application(_ app: UIApplication, open inputURL: URL,…
hidden-username
  • 2,610
  • 3
  • 14
  • 19
2
votes
1 answer

Adding file extensions to iOS document manager

I’m using the default iOS file manager for a Swift application. I’m writing the class for a UIDocumentBrowserViewController and I want the whole file name to show. For example rather than Untitled, I want Untitled.txt. Or rather than script,…
Matt Bart
  • 809
  • 1
  • 7
  • 26
2
votes
1 answer

Swift 4.2 UIDocumentBrowser View Controller Powerpoint PPTX files greyed out

I'm using a Document Based App template in Xcode 10.1 with Swift. Out of the box, it doesn't support many file types, so I have added a number of Document Types including various Microsoft Office formats (doc, xls, ppt) which work fine. I have also…
Taz Evans
  • 37
  • 1
  • 7
2
votes
0 answers

launch screen for UIDocumentBrowserViewController (dark appearance)

I'm using a UIDocumentBrowserViewController as my initial screen with browserUserInterfaceStyle = .dark. How can I construct a matching LaunchScreen.storyboard? I'm trying to follow the HIG:…
Taylor
  • 5,871
  • 2
  • 30
  • 64
2
votes
1 answer

UIDocument, FileWrapper & Third-Party File Providers

I use document packages in my application (via FileWrapper API) and I am using the UIDocumentBrowserViewController class for document management. The document package basically represents a hierarchy of (text) files and folders. Everything works…
2
votes
1 answer

How to display sandboxed files using a UIDocumentPickerViewController?

I am trying to display documents created by my app using the UIDocumentPickerViewController. Is this possible, or do I need to roll my own? Based on my research, it appears that this can't be done, but that seems like such an unnecessary…
1
2 3