首页 > 技术文章 > swift2.0 Cannot assign a value of type '[CFString]' to a value of type '[String]'

741162830qq 2015-09-16 13:47 原文

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

 

代码示例如下:

 picker.mediaTypes = [kUTTypeImage]

修改如下:

picker.mediaTypes = [kUTTypeImage as String]

 

推荐阅读