每当我使用Safari浏览网页并遇到<input type="file">元素时,我可以选择它,Safari会向我提供一个弹出菜单(操作表?),如下所示:
这种控件是否可以在我的应用中实现? 我能找到的只是UIImagePickerController ,它似乎只是用于拾取图像。 我想要根据用户设备上可用的不同应用程序(相机,照片库,iCloud,Dropbox,Google Drive等)选择任何文件的全方位选项。
如果没有传统意义上的可用,我可以尝试以某种方式使用Web视图来破解它吗?
Whenever I use Safari to browse the web and come across a <input type="file"> element, I can select it and Safari presents me with a popup menu (action sheet?) that looks like the following:
Is this type of control available to implement in my app? All I can find is UIImagePickerController which seems to be just for picking images. I want the full range of options for choosing any file based on the different apps available on the user's device (Camera, Photo Library, iCloud, Dropbox, Google Drive, etc).
If not available in the traditional sense could I try to hack it in with a web view somehow?
最满意答案
这是一个UIDocumentMenuViewController 。
另请参见UIDocumentPickerViewController 。
That is a UIDocumentMenuViewController.
See also UIDocumentPickerViewController.
更多推荐
发布评论