swift2.0 Cannot assign a value of type '[CFString]' to a value of type '[String]'

时间:2025-01-13 16:04:08

Cannot assign a value of type '[CFString]' to a value of type '[String]'

代码示例如下:

 picker.mediaTypes = [kUTTypeImage]

修改如下:

picker.mediaTypes = [kUTTypeImage as String]