UIDocumentInteractionControllerDelegate - Inherited Action Methods

I use methods UIDocumentInteractionControllerDelegatefor working with documents. I opened the document at UIWebview. I am trying to send a document by email to other users. To do this, I call presentOptionsMenuFromBarButtonItemto display the menu item. It works up to versions of iOS 7, but I'm currently testing iOS8 and getting the following message in the console:

UIDocumentInteractionControllerDelegate implements legacy action methods. Please remove them.

Any suggestions?

+4
source share
1 answer

Do you use at least one of these two methods?

- (BOOL)documentInteractionController:(UIDocumentInteractionController *)controller canPerformAction:(SEL)action NS_DEPRECATED_IOS(3_2, 6_0);
- (BOOL)documentInteractionController:(UIDocumentInteractionController *)controller performAction:(SEL)action NS_DEPRECATED_IOS(3_2, 6_0);

They are deprecated from 6.0. Try not to use them.

+1
source

All Articles