UIDocumentInteractionController OpenInMenu crashes iOS app
Found the problem, thanks to this answer. It was a memory thing. I was using the UIDocumentInteractionController as a local instance variable and ARC was releasing it to soon. Turned it into a class property and now everything works.
You have to define UIDocumentInteractionController *controller in your .h file after @interface ... like
@interface sampleView <UIDocumentInteractionControllerDelegate>
{
UIDocumentInteractionController *controller;
}
Application needs to have access to this variable from entire module, not only in procedure where it called from.