User accessible xml files used in iOS application [closed] - ios

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

Related

Is it possible to create photo cleaner app using nativescript? [closed]

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.

File explorer/ File manager like android [closed]

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

Build a Windows Desktop Application from a Rails App [closed]

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 have build a fairly decent sized Ruby on Rails Application that works just fine. It exposes data via Rest API calls to the users, that is authenticated via token based authentication and Devise.
But now a few clients are wanting to have the application on-premise. They want their developers(windows developers) to work on the data, but in offline mode.
I have no idea if a Ruby on Rails App can be converted to a Windows Desktop App. Or do I have to build the desktop App from scratch? The Desktop App will NOT have a GUI, as the client just needs the data in Json format(Just like API calls during web-app).
The Desktop App will also have a license information too that needs to be stored in an encrypted way.
I am a complete newbee to desktop apps so please pardon me if this question seems really stupid.
Actually there's a project to do what you want to do. http://enclose.io will allow you to package your app for windows clients.

iOS - Clear application data on application uninstallation [closed]

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 6 years ago.
Improve this question
I need to clear the application data completely while the user is uninstalling an iOS application. These are some of the persistence storages i would target to delete. Please add incase if i miss anything
Keychain
NSDocumentsDirectory
NSUserDefaults
Core data
Sqllite
iCloud
Plist files
CSV
XML
Images & Assets
Does the OS itself takes care of deleting all the files above?
Your app has neither the responsibility nor the ability to perform cleanup when it’s being uninstalled—once the user removes the app, your code ceases to run. On app uninstallation, iOS removes both the app bundle (containing any resources that shipped with the app) and the app container (containing any files that the app wrote within its sandbox while it was running). Some kinds of data, like keychain items that have a group identifier, can persist after the app is removed, but, again, you have no control over that at the point of uninstallation.

Dynamic content within iOS App? [closed]

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"];

Resources