【问题标题】:What to use in stead of UIImagePickerControllerReferenceURL for iOS 13?在 iOS 13 中使用什么来代替 UIImagePickerControllerReferenceURL?
【发布时间】:2020-10-07 14:01:37
【问题描述】:

从 iOS 11 开始不推荐使用 UIImagePickerControllerReferenceURL。文档说使用 PHPickerViewController,但这仅在 iOS 14 开始可用。对于介于两者之间的项目,即需要 iOS 13 的项目,我应该使用什么?

【问题讨论】:

    标签: ios swift uiimagepickercontroller


    【解决方案1】:

    尝试使用 UIImagePickerController.InfoKey.phAsset 而不是 UIImagePickerControllerReferenceURL。这适用于 iOS 11

    【讨论】:

      猜你喜欢
      • 2020-02-22
      • 1970-01-01
      • 1970-01-01
      • 2020-05-15
      • 2011-10-02
      • 2011-10-12
      • 1970-01-01
      • 2020-02-14
      • 2018-11-24
      相关资源
      最近更新 更多