最近用模拟器调试打开相册功能,总是报错
UIImagePickerController extension discovery failed
无奈之下,使用了真机进行测试 发现正常没有报此错误
记录下来 顺便记录下几个问题
-
kUTTypeMovie已经被设置为deprecated需要使用UTTypeMovie替换 在swift中可以使用UTType.move.identifier来替换 -
使用
UTType需要import UniformTypeIdentifiers -
UIImagePickerController.SourceType.photoLibrary即将deprecated需要使用PHPicker这里应该是需要使用PHPickerViewController来替换