Questions tagged [uidocumentpickervc]
97 questions
3
votes
1 answer
Why Photos app is NOT showing in the Document Provider extensions on the device?
I'm working in app to pick photo, I have used UIDocumentMenuViewController to display list of extensions for document provider. This list shows Dropbox, iCloud, GoogleDrive but not the native Photos app, why?
Sample of my…

Hossam Ghareeb
- 7,063
- 3
- 53
- 64
3
votes
1 answer
UIDocumentPickerViewController delegate: startAccessingSecurityScopedResource always returns NO
Any idea why startAccessingSecurityScopedResource always returns NO in the following callback of UIDocumentPickerViewController:
- (void)documentPicker:(UIDocumentPickerViewController*)in_documentPickerViewController…

Chang Kuang
- 211
- 1
- 2
- 6
2
votes
0 answers
Accessing a URL in Google Drive through UIDocumentPickerViewController
I'm using a UIDocumentPickerViewController to allow the user to open a video file stored in cloud storage providers. In the UIDocumentPickerDelegate -> documentPicker(_ :, didPickDocumentsAt:) I check the URL is valid and simply set let video =…

Yariv Adam
- 844
- 9
- 24
2
votes
1 answer
iOS 13 How to use UIDocumentPickerViewController with App Group?
I have implemented an AppGroup in my app in preparation for sharing data with another app. I have successfully moved files to that App Group from the default app documents…

John F Donigan
- 111
- 1
- 1
- 8
2
votes
3 answers
Change State with DocumentPicker SwiftUI
I'm trying to get a List View to appear after selecting a document with documentPicker. Getting the following error...
Fatal error: No ObservableObject of type Switcher found.
A View.environmentObject(_:) for Switcher may be missing as an ancestor…

Mdoyle1
- 121
- 1
- 12
2
votes
3 answers
No callback while using UIDocumentPickerViewController
I'm using UIDocumentPickerViewController to select a document from the iPhone.
I have implemented the feature in the following way.
class Si3EntityDocumentViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource,…

Vedant Shirke
- 21
- 2
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…

hidden-username
- 2,610
- 3
- 14
- 19
2
votes
2 answers
Allow only images & pdf in UiDocument Picker Swift 3
I need the user to select only images and pdf files from UIDocumentPicker & want to check which type of file user has selected in the DocumentPicker delegate method
I have used this but this allow everything
let documentPicker =…

Parth Soni
- 67
- 1
- 6
2
votes
1 answer
UIDocumentPickerViewController - Hide Location button
I am developing an application which has the capability to import an audio file from other cloud resources which provide UIDocumentPickerViewControllerExtenstion to choose the file but there is location button on the top left side I want to remove…

Dhaval Patel
- 716
- 1
- 10
- 26
2
votes
1 answer
Xamarin iOS: Why required to call StartAccessingSecurityScopedResource and release it in the DocPicker Sample
I am using Document Picker in Xamarin iOS. In the sample of the DocPicker, they called something like StartAccessingSecurityScopedResource with comment on top.
// IMPORTANT! You must lock the security scope before you can
// access this…

LittleFunny
- 8,155
- 15
- 87
- 198
2
votes
1 answer
iCloud Document Picker: App folders are disabled on import
I'm having a problem regarding app folders being disabled when I'm trying to import from iCloud, see the image below:
I checked google drive's iCloud import and it's not disabled like in the image below:
I need to get documents from other app's…

Bryan P
- 4,142
- 5
- 41
- 60
2
votes
1 answer
UIDocumentPickerViewController - each file that was picked once is then grayed out
I'm using UIDocumentPickerViewController on iOS 8 to allow users to open documents in iCloud Drive.
I use UIDocumentPickerModeOpen with the custom UTI of my app's document:
UIDocumentPickerViewController *pickerViewController =…

Mark
- 6,647
- 1
- 45
- 88
2
votes
1 answer
Unable to import pages and numbers documents with UIDocumentPicker
I'm developing an app that provides the ability to store cloud documents.
This app will have the option to import data from other apps using the new UIDocumentPickerViewController.
Everything works fine and I'm able to show the picker view…

jiraya85
- 428
- 1
- 5
- 26
2
votes
0 answers
Can we get to choose the application which can be used to edit a document in iOS 8?
I was going through Document Picker & Document Provider Extensions of iOS8 today. Document picker allows us to pick documents of the different apps where as the document provider helps us to work with third party storage.
Right now I have one…

iamyogish
- 2,372
- 2
- 23
- 40
1
vote
1 answer
iOS Error on uploading pdf file to server - Swift Xcode 13
I am working on uploading pdf file to server using UIDocumentPicker. It selects the file correctly but while fetching the file content it is throwing this error:
Fatal error: 'try!' expression unexpectedly raised an error: Error…

Nabeel
- 841
- 1
- 10
- 23