在这里,我附上了我的谷歌驱动器截图。
当我尝试通过 UIDocumentMenuViewController 从 iOS 应用程序附加文件时,.ipa 和 .apk 文件显示为灰色。它已禁用,这就是为什么我无法选择它。那么我该如何启用它?
这是我的代码:
UIDocumentMenuViewController *viewController = [[UIDocumentMenuViewController alloc] initWithDocumentTypes:@[@"public.data"] inMode:UIDocumentPickerModeImport];
viewController.delegate = self;
//viewController.modalPresentationStyle = UIModalPresentationFullScreen;
viewController.popoverPresentationController.sourceView = [self popoverPresentationView];
viewController.popoverPresentationController.sourceRect = [self popoverPresentationRect];
viewController.popoverPresentationController.permittedArrowDirections = [self popoverPresentationArrowDirection];
[self.initialViewController presentViewController:viewController animated:YES completion:nil];
请任何人帮助..提前谢谢..