May app getting crash when execute below code.
Code:
self.documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:targetURL];
Crash log: Terminating app due to uncaught exception 'NSGenericException', reason: 'UIDocumentInteractionController not available'
is there any solution for this issue or any alternative class?
It’s not available in Catalyst, despite what the docs say.
You could explore using an AppKit alternative (QLPreviewPanel), but you’ll have to do some hacking to get it to work from a Catalyst app: https://stackoverflow.com/a/32814132/1601849