码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2015-09-16 14:13:35      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:

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

 

代码示例如下:

 picker.mediaTypes = [kUTTypeImage]

修改如下:

picker.mediaTypes = [kUTTypeImage as String]

 

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

标签:

原文地址:http://www.cnblogs.com/741162830qq/p/4813119.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!