Using the UIDocumentPickerViewController, is it possible to show a default service (Dropbox, Google Drive, etc) on first open like in Slack?

后端 未结 3 1861
青春惊慌失措
青春惊慌失措 2021-02-01 04:24

Normally, the behavior with UIDocumentPicker is that you present, then the user must use the \"Locations\" menu on the top right to switch between the services. Is it possible t

3条回答
  •  盖世英雄少女心
    2021-02-01 05:14

    This isn't specifically about Google Drive but at a past job I needed to display Facebook when Apple SDK wasn't showing me Facebook. (The edge case here was the user's Facebook account wasn't in Settings.)

    So I grabbed their icon and made a custom entry.

    I suspect that you could do the same here. Grab the Google Drive icon and make that a custom Document. And when the user selects it, you hand them off to Google.

    This is just a guess since I've not used UIDocumentPicker. And also, it is quite hackish.

提交回复
热议问题