0
私はこのコードを使用して、アプリケーションでiCloudからドキュメントを取得しています。UIDocumentPickerViewControllerから.docファイルを取得できません。ios swift
let documentPicker: UIDocumentPickerViewController = UIDocumentPickerViewController(documentTypes: ["public.content","public.data"], in: UIDocumentPickerMode.import)
documentPicker.delegate = self
documentPicker.modalPresentationStyle = UIModalPresentationStyle.fullScreen
if let popoverPresentationController = documentPicker.popoverPresentationController {
popoverPresentationController.sourceView = sender
}
self.present(documentPicker, animated: true, completion: nil)
iCloudの3種類のドキュメント、つまり.pdf、.doc、.docxが必要です。 PDFファイルは入手できますが、icloudの.docファイルは入手できません "public.content"、 "public.data"というファイルタイプに対して適切なUTIを与えています。これらのUTIは、 apple Documentationページに記載されています。 public.dataはdocファイルを確認しますが、依然としてdocファイルを取得できません。
これは質問に対する答えを提供しません。十分な[評判](https://stackoverflow.com/help/whats-reputation)があれば、[投稿にコメントする]ことができます(https://stackoverflow.com/help/privileges/comment)。代わりに、[質問者から明確にする必要のない回答を提供する](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can -i-do-代わりに) - [レビューから](https://stackoverflow.com/review/late-answers/17657874) – Sand