Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
Am building an iOS app that requires user uploading pdf files. I want to create a button that after the user clicks it, it opens the file directory to search for the specific file to upload to the server.
I will appreciate if anyone can tell me how to do it using swift.
Thank you
Two things you can consider:
1. If you have to give permission for sharing document directory in your .plist. Then traverse through file app.
2. Or you have to use UIDocumentBrowserViewController and show list of file and directory.
Please check this link : https://developer.apple.com/documentation/uikit/uidocumentbrowserviewcontroller
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I'm starting a project in which i can view all image's/Documments/files all the phone storage data of the iphone device.
Like File Explorer app in which we can see all folder and data in the storage in the Iphone devices and i can do all operations like cut, copy image's, file's etc to another folders in phone.
example :- like we have Es file explorer application in android. I need to create it for iphone.
Can copy image's to OTG device's. create , update , delete file's, etc
any links of tutorials or suggesting site for this project.
For Example for IOS : - IUSB Drive app.
You can use FileProvider.
Using this your app can access the documents and directories stored and managed by your other apps.
There are some Limitation that you can't do all features like ES File explorer does.
Some tutorial:
https://www.raywenderlich.com/1060-ios-extensions-document-provider-tutorial
https://medium.com/if-let-swift-programming/managing-files-in-ios-dfcdfdc1f426
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
There are some source files for iphone apps with the formats such as .m & .h
I want to know whether normal users or developers can access such files when you put an app into AppStore.
No, you can not access these files.you can see only resources of the app.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'd like to make an app that has access to a specific folder(s) and can read all the folders / files inside of it. What type of access does that require? Are there any libraries for this in Ruby? How do I list files in a specific directory and read their contents?
You can use Dir and File from ruby standard library. following script will read all the files in current directory and output its size to screen
Dir['*.*'].each do |name|
puts File.open(name).size
end
Please refer to ruby documentation for more commands regarding these classes.
Dir rubydoc
File rubydoc
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
In my application I have to read a file that have be created by another application on my device.
How it can be done. The file must be located on file System's root directory
Thanks,
Eyal.
Unless you are writing for Jailbroken devices, you can't access files outside of your app's sandbox.
So, for apps distributed through the App Store, you can't do this.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am fresh to the iPad app development. Now I am developing a calculator. And I want copy my result of the calculation to textEdit or to my mail which is outside the application. How can I do it?
if the text is selectable users should be able to copy and paste the information using the iOS clipboard themselves, this is probably the easiest option if you don't have a specific other application for them to copy to.
You can use Apple's APIs to send an email and put the result into the body/subject as necessary, this would provide a much nicer user experience.
See this answer for more details.