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

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

代码示例如下:

 picker.mediaTypes = [kUTTypeImage]

修改如下:

picker.mediaTypes = [kUTTypeImage as String]
原文地址:https://www.cnblogs.com/741162830qq/p/4813119.html