iOS Document/File type associations - wildcard UTI?
public.item works for every type I've tried so far.
How to support files with a dynamic type identifier but a specific extension?
You can define UTIs in your Info.plist. Make one up if this is for an extension of your own creation and put it under the "Exported Type UTIs". If it's for a known type of file but the UTI isn't well known, you can put it under the "Imported Type UTIs" section of your Info.plist. In either case, you can now reference this UTI in the Document types section.
Custom file types with iOS Document Interaction Programming
As far as i understand the UIT concept of Apple you cannot just change the file extension to change a potential UIT of the file. If the file contains XML-Data, other apps as well as internal apps might recognize your content and show it internally as XML.
Try to store your Plists with NSPropertyListSerialization
NSPropertyListBinaryFormat_v1_0
(then you readble XML)
When you did that without success, why not trying this:
- use
zlib
to compress the XML plists afterwards to a zipped file. - make a "unique" file extensions (
<file>
.myappname)
this should "hide" other apps and quick view.
Tell me if one of the ways did work for you.
iOS open app when file is tapped in `Files` app
In the info.plist add the key "Supports opening documents in place" of type BOOLEAN and set it to TRUE.
You can than check with
BOOL openInPlace = [options[UIApplicationOpenURLOptionsOpenInPlaceKey] boolValue];
in
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options
if the provided url is a file that should be opened in place (most likely from the files app).
Related Topics
How to Take a Snapshot of a Uiview That Isn't Rendered
Parse Starter Project Login and Register View Controllers Errors
Detecting When App Is Becoming Active from Lockscreen VS Other on iOS7
Uisplitviewcontroller on iPad with Storyboards
How to Hide "Back to Safari" from Status Bar in iOS9
Uiwebview Stringbyevaluatingjavascriptfromstring Hangs on iOS5.0/5.1 When Called Using Gcd
iOS - Using Uisearchdisplaycontroller with Uisearchbar That Is Uibarbuttonitem in Uitoolbar
Module Compiled with Swift 5.0.1 Cannot Be Imported by the Swift 5.1 Compiler
How to Add External Webvtt Subtitles into Http Live Stream on iOS Client
How to Detect Fullscreen Mode Using Avplayerviewcontroller in Swift
Multiple Localized .Strings Files in iOS App Bundle
Property 'Self.*' Not Initialized at Super.Init Call
How to Add Firebase to Today Extension iOS
Will iOS Awake My App When I Receive Silent Push Notification(When App Is Not in Running State)
Offline Crash Reporting in Crashlytics
How to Determine File Size on Disk of a Video Phasset in iOS8
iOS Network Reachability - Doesn't Seem to Be Working
Apple Watchkit Simulator Issue: Sperrorinvalidbundlenogizmobinarymessage