Questions tagged [uidocumentinteractioncontroller]
44 questions
                    
                    7
                    
            votes
                
                1 answer
            
        Preview document using UIDocumentInteractionController doesn't work in iOS 13
I use the UIDocumentInteractionController to preview files of different types within the app. This has worked fine in the past, but when running the app on a device with iOS 13 the document is not presented. What is shown is the file name and…
         
    
    
        losh
        
- 85
- 6
                    4
                    
            votes
                
                1 answer
            
        Sharing a Document with UIDocumentInteractionController
I'm trying to share a document stored in the temporary directory using UIDocumentInteractionController. Essentially, I'm using the following code:
@IBAction func createDocumentButtonClicked(_ sender: Any) {
    do {
        // create temporary file
…
        user3386180
                    3
                    
            votes
                
                0 answers
            
        iOS Files App Registration with file types
I store video files in the Documents folder of my app. I need to present an option that enables users to copy video files from Documents folder to iOS Files app. I also want to automatically have a folder for my app in iOS files app (as seen in the…
         
    
    
        Deepak Sharma
        
- 5,577
- 7
- 55
- 131
                    2
                    
            votes
                
                1 answer
            
        File sharing using UIActivityViewController/ UIDocumentInteractionController not working - [can't share via AirDrop, Whatapp, iMessage, Mail, etc.]
While trying to share an '.mp3' file that I have downloaded onto my app using the device's share-sheet feature, I'm able to fetch the file from the documents directory but unable to share it.
When I try to share it via Whatsapp, I get an error…
         
    
    
        zaam
        
- 287
- 1
- 2
- 14
                    2
                    
            votes
                
                1 answer
            
        Error when trying to copy a file with FileManager: Operation not permitted
I'm new to FileManager in iOS. I'm trying to create a simple app: there's a list of files, and when the user press a cell the the file opens. The user can also add new files.
A while ago I asked a question about another error I had, and I got an…
         
    
    
        Daisy the cat
        
- 372
- 3
- 11
                    2
                    
            votes
                
                0 answers
            
        Customizing UIDocumentInteractionController
Recently I was trying to customize UIDocumentInteractionController. Specifically removing 3-rd party apps from it.
I have read many articles and topics, but all I found out, is that it’s simply “uncustomizable”. 
I am trying to pass my image to…
         
    
    
        Khrystyna Savchuck
        
- 21
- 4
                    2
                    
            votes
                
                2 answers
            
        present DocumentInteractionController inside tableview XIB containing a collectionView
Im trying to load a tableview xib containing a collectionView. collectionView contains a list of files as to be downloaded and opened.
class CommentsCell: UITableViewCell, UICollectionViewDelegate, UICollectionViewDataSource,…
         
    
    
        Vaisakh KP
        
- 467
- 1
- 6
- 25
                    2
                    
            votes
                
                3 answers
            
        How to make UIDocumentInteractionController can open files in other apps, instead of copying it to other apps?
I'm developing a download and share file method to other apps using UIDocumentInteractionController. But strangely, all I can get is "copy to" apps features, instead of "open in" apps. If I click on the "copy to", nothing happened, even though I…
         
    
    
        Chen Li Yong
        
- 5,459
- 8
- 58
- 124
                    2
                    
            votes
                
                2 answers
            
        Instagram iPhone Hooks iOS 11.2.5 instagram 29, feed not opening the file, but the camera roll
the project I have uses UIDocumentInteractionController to copy/share and image to Instagram, it worked fine for a while.
As soon as I selected the instagram app from the iOS share sheet. the image was open in the select filter section.
Recently,…
         
    
    
        leonyannik
        
- 23
- 4
                    2
                    
            votes
                
                1 answer
            
        ios - Control copy and share file with other apps in qlpreviewcontroller or UIDocumentInteractionController
Current implementation.
UIWebView is added to a view and file is loaded in that. Here I can control copy option with "UILongPressGestureRecognizer" and also control whether to allow sharing with other apps using "documentInteractionController…
         
    
    
        Durgaprasad
        
- 1,910
- 2
- 25
- 44
                    2
                    
            votes
                
                2 answers
            
        ios11 UIDocumentInteractionController presentPreviewAnimated freezes the app
I've an issue with my iPad app on iOS11 when I want to show a preview of PDF files with this code :
self.documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL…
         
    
    
        ElFrancky
        
- 45
- 1
- 7
                    1
                    
            vote
                
                1 answer
            
        How to show pencil option in UIDocumentInteractionController?
I am trying to use UIDocumentInteractionController in swiftUI using UIViewControllerRepresentable. My code works fine but I want to add pencil functionality to my app. I wanna be able to draw over image using pencil or finger. When you open an image…
         
    
    
        FE_Tech
        
- 1,534
- 13
- 25
                    1
                    
            vote
                
                1 answer
            
        Check zip file containing video content or not in swift
I have to preview zip files using Document Interaction Controller, but zip files containing video content should not be previewed. Is there a way to check zip file containing video content using swift?
         
    
    
        Sudhi 9135
        
- 745
- 8
- 17
                    1
                    
            vote
                
                0 answers
            
        iOS 13 App Crashing on back button UIPrintPanelNavigationController
iOS App is crashing on when click on printer screen back button.
opening a PDF file by help of UIDocumentInteractionController.
Then clicking on print button on right bar navigation item.
then click on select printer screen,when click on back button…
         
    
    
        user1458088
        
- 11
- 3
                    1
                    
            vote
                
                0 answers
            
        Cannot preview .xlsx file using UIDocumentInteractionController in swift 4
I have an application which will download .xlsx, .pdf files from a given url. When downloaded will show a local notification. Upon clicking the notification , preview of the downloaded file should be shown. I can download and preview a pdf file, but…
         
    
    
        ifrit
        
- 11
- 4