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
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to create iOS app which helps me to clean photo library.
Idea is simple - show all photos and videos from my iOS photo library with its sizes (regardless of where is media located - in iCloud or locally) with ability to preview them and to make selection for next deletion.
I have started to configure environment and figure out how to write apps with nativescript and can't google even how to get full list of photos/videos from iOS native Photos app.
Are there any limitations which will not let me to create an app described above in nativescript? Maybe it is not even possible to create in Xcode?
Is it possible to do in NativeScript? Yes.
It's very much possible. But you may not get the code you could just copy paste, you will have to understand the way plugins work & code marshalling (Objective C to JS).
The advantage of using {N} here would be cross platform UI, JavaScript as programming language for both iOS and Android, but you will have to use the native APIs to do the job.
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
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm building an iOS application which will read in XML files and generate various reports from them. The application must read them from the local device (in this case an iPad Mini 4). Users later may upload new XML files to the device (via non-developer type means and not changing the app's source code in any way). What is a good method for users to upload files to the iPad in a way that my application will have read access to them? Also, any pointers for XML reading in Swift would be beneficial.
I'm using Swift 4.0.3 and XCode 9.2 and while I've been a software developer for a long time, I'm relatively new to iOS development.
For upload new XML files to the device, you can
Using "File Sharing", that will allow user can upload file to your app via Itunes
Make your app like a server, and user will upload file via Wifi (you can search the open source in github, for example https://github.com/swisspol/GCDWebServer)
P/s: I think the json file will be lighter than the xml file. Swift 4 has supported json reader well with Codable protocol, too
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I’m creating an iOS app for a local restaurant though which users can view the menu. The restaurant would like the ability to update the menu dynamically (ie. without having to go through the full Apple release procedure). In my mind this should be pretty simple, there could be a JSON/Plist file hosted online which the app accesses when presenting the menu, it could store the data locally then each subsequent time it could just check the version number to see if it’s changed and update accordingly. (Alternatively it could just download and present the whole thing every time since the files likely to be tiny).
The bit I’m struggling with is where to host the file (where I can update it occasionally) and how to access it within the app. Seems a lot of work writing a server and an API for one small file. Could it be put on Dropbox and accessed from there or is that likely to be unreliable?
For anyone else reading this I found the perfect solution - https://github.com/mattt/GroundControl
You could host the menu on an appache webserver and everytime the app is started you check the current version of the file on the device against the one on the server and download it if the version number is above that one.
Read a .plist file to a NSDictionary:
NSDictionary *menu = [NSDictionary dictionaryWithContentsOfFile:#"menu.plist"];
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
Is it possible (and if so, how) to allow a user within an iOS5/6 application to upload audio, video, text, and image based files from within the standard iOS application libraries (such as Music, Photos, Videos, etc.) and/or third-party applications libraries (such as Dropbox, Google Drive, iCloud, etc.)?
Yes, but only if the third party has an API or SDK that allows access from an iOS application. Apple provides APIs for accessing music, photos, and documents. If you consult the documentation provided by the software providers, they should all have examples of how gaining access to the files can be accomplished. The uploading of the files to wherever they are going would be your application's responsibility.