There is an option to specify other kinds of actions, such as additional apps that handle opening doc, pdf, etc.. but we haven't investigated that open for the UIActivityViewController. We will add this on our feature request list. For the UIDocumentInteractionController, the URL needs to be a fileURL and the document controller has a class function that returns an instance based on an URL. The code could be changed to:
I tried your example but the app closes immediately without the possibility of debugging.
I tried also to use a TMSFMXNativeUIActivityViewController1 as the target and for a few milliseconds I see a list IOS apps but then closes immediately.
We have unfortunately little time to investigate all of this, but if you search for the UIDocumentInteractionControllerDelegate in the iOSApi.UIKit unit, you will see that it is commented.
You can copy the code, create a TOCLocal class based on a sample in one of the TMS iCL controls and assign the delegate to the UIDocumentController following the sample at the URL http://www.g8production.com/post/54417573525/open-with-in-ios-uidocumentinteractioncontroller when converting it to Delphi code. The only events that needs to be uncommented are the three events that are specified in the sample.