正如@rmaddy所说,你应该使用UIDocumentInteractionController
替换UIActivityViewController
,就像这样:
UIDocumentInteractionController *dc = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:fileNameStr]]; [dc presentOptionsMenuFromRect:self.view.bounds inView:self.view animated:YES];