问题标签 [uidocumentmenuvc]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
xcode9-beta - How do you create a new document using UIDocumentBrowserViewController in Xcode 9 beta 2?
I am having problems with UIDocumentBrowserViewController Bug in Xcode 9 Beta 2, was working with beta 1.
The symptom is that you can't create a new document, on most pages the + icon is missing or greyed out. On the browse page it is present and not greyed out, but doesn't work.
EG If you start a new Documents project and modify the function below to include the print statement given:
Then the print statement isn't printed when + on browse page is tapped. Testing on iPad Pro 12" (original) with latest iOS 11 beta.
Is this a bug? Am I doing something wrong?
Thanks for any help,
-- Howard.
ios - UIDocumentPickerModeExportToService 在 iOS11 中不显示 Drive 或 DropBox
我一直在我的应用程序中使用 UIDocumentMenuViewController 和 UIDocumentPickerViewController 从 Google Drive、DropBox、iCloud 等 3rd 方应用程序导入图像和 pdf。这也用于将一些 pdf 从我的应用程序导出到这些其他应用程序。在最新的 iOS 更新之前,它工作正常。
在 iOS 11 中,导入服务按预期工作,但在我尝试导出 pdf 的应用程序中,该应用程序只显示“iCloud Drive”和“在我的 iPhone 上”选项。它不显示 Google Drive 或 DropBox。此行为特定于 iOS 11。
我在 Apple 上阅读了有关 UIDocumentMenuViewController、UIDocumentPickerViewController 和 UIDocumentBrowserViewController 的文档。他们都没有为 iOS11 中的“UIDocumentPickerModeExportToService”模式指定任何更改。我是否缺少来自 Apple 的任何更新信息?
更新:Dropbox 和 Google Drive 发布了与 iOS11 兼容的新版本应用程序。将这些应用程序更新到新版本即可解决问题!
ios - 当使用 swift3.0 进行按钮操作时,如何在 ios mobile 中打开文档文件,例如(.pdf、.doc、.docx)?
我需要打开UIDocumentPickerViewController
它应该允许用户选择所有类型的文件。即(.pdf,.doc)文件我使用的UIDocumentPickerViewController
方法。我的代码:
UIDocumentPickerDelegate, UIDocumentMenuDelegate
在我的班级声明中
//上传文件
在此代码中,应用程序将崩溃。原因是Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'You cannot initialize a UIDocumentPickerViewController except by the initWithDocumentTypes:inMode: and initWithURL:inMode: initializers.
我不知道如何初始化initWithDocumentTypes:inMode.
我是 iOS 新手,有人帮帮我吗???你能帮我么..