Saving FILE / DOCUMENT that you generate using your iOS app is an interesting task when developing iOS App. Eventually you also want to know this ability.
You can apparently very quickly save out text files, or output all kind of processed files, etc. into Document sandbox of your app, for later to be accessible via iTunes or NEW Files app (iOS 11)!
http://jayeshkawli.ghost.io/ios-custom-url-schemes/
http://pinkstone.co.uk/how-to-enable-itunes-file-sharing-in-your-ios-app/
https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW20
https://developer.apple.com/library/content/documentation/Miscellaneous/Conceptual/iPhoneOSTechOverview/CoreServicesLayer/CoreServicesLayer.html#//apple_ref/doc/uid/TP40007898-CH10-SW30
https://stackoverflow.com/questions/4546334/uifilesharingenabled-has-no-effect/4546581#4546581
Loading files could also be interesting, but something I need to research in the future.
You can apparently very quickly save out text files, or output all kind of processed files, etc. into Document sandbox of your app, for later to be accessible via iTunes or NEW Files app (iOS 11)!
WRITE
https://www.hackingwithswift.com/example-code/strings/how-to-save-a-string-to-a-file-on-disk-with-writetoCUSTOM URL
You need to prepare your URL Scheme for your app first. This will be handy at later stage.http://jayeshkawli.ghost.io/ios-custom-url-schemes/
PLIST
Then we got to deal with PLIST attributions. This is pretty easy once understood.http://pinkstone.co.uk/how-to-enable-itunes-file-sharing-in-your-ios-app/
https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW20
https://developer.apple.com/library/content/documentation/Miscellaneous/Conceptual/iPhoneOSTechOverview/CoreServicesLayer/CoreServicesLayer.html#//apple_ref/doc/uid/TP40007898-CH10-SW30
https://stackoverflow.com/questions/4546334/uifilesharingenabled-has-no-effect/4546581#4546581
Loading files could also be interesting, but something I need to research in the future.
Comments
Post a Comment