How to open a file browser when a button is tapped in my application in iphone.It has to show the files with an extension of .pdf format.And it has to be saved to a local database.For example,if we want to send an email to xyz,we attach some files if we want to send files.If we click attach a file button,it will show the file explorer.In the same manner the file explorer has to be opened if the user clicks a button in iphone.Please help me out of this.
相关问题
- Core Data lightweight migration crashes after App
- What is the best way to do a search in a large fil
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- What is the correct way to declare and use a FILE
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
I did something similar with my IOS application. As IOS don't have(I think) a file browser and you are, in big therms, only allowed to use your application Documents folder when he clicks to attach file I open a UIPopoverController and I show him all the files with the extension I want. In my case was the .csv files and I use this algorithm:
Where _data is an array I use in my tableView to know all csv files I have. If you want to do that as a file browser show the directories to and let the user see the files into the directories recursively. My table dataSource:
I hope it helps you
Right now, with Files app you can choose from all files on iCloud or any connected cloud storage like Google Drive etc.
This is somehow familiar to filesystem and allows user to access any file they need as long as they store it somewhere in the cloud.