UIDocumentInteractionController disappears after rotation

I use UIDocumentInteractionControllerto exchange data with other applications on the device

 self.docInteraction = [UIDocumentInteractionController interactionControllerWithURL:imageAttachFile];
 self.docInteraction.delegate = self;
 [self.docInteraction presentOpenInMenuFromRect:CGRectZero inView: self.view animated: YES ];

It works well, but it disappears after turning the device. What is the reason for this and how to fix it?

+5
source share
1 answer

This is similar to the default behavior of the UIDocumentInteractionController, which I am also considering how to override. But the work that I did is to change the orientation of the device using one of the methods listed here: Detect iOS orientation changes instantly and again imagine your self.docInteraction while rotating.

, presentOptionsMenuFromRect presentOpenInMenuFromRect , ​​ [UIPrintInteractionController sharedPrintController ].

, , , , :)

0

All Articles