swift2.0 Cannot assign a value of type '[CFString]' to a value of type '[String]'
2015-09-16 13:47
501 查看
Cannot assign a value of type '[CFString]' to a value of type '[String]'
代码示例如下:picker.mediaTypes = [kUTTypeImage]
修改如下:
picker.mediaTypes = [kUTTypeImage as String]
相关文章推荐
- Swift学习笔记(二十八)——Switch-Case的高级用法
- Swift学习笔记(二十七)——条件语句和Switch-case语句
- Swift学习 第一课,变量与常量
- Swift 2.0 : 'enumerate' is unavailable: call the 'enumerate()' method on the sequence
- Swift基础语法详解(一)
- Swift之贪婪的UIButton
- Swift中的NSKeyedArchiver使用
- Swift中的单例的实现方式
- Swift_基础部分
- Swift 2:可以使用 @NSManage 标记自动生成方法
- Swift 2.0学习笔记(Day 1)——我的第一行Swift代码
- Swift UIScrollView简单介绍
- Swift中自定义SubString
- 【iOS】Swift中扩展extension与协议protocol
- Swift Tutorial(swift 教程) 5:Making it Beautiful
- 关东升的《iOS实战:图形图像、动画和多媒体卷(Swift版)》上市了
- 关东升的《iOS实战:图形图像、动画和多媒体卷(Swift版)》上市了
- Swift UITabBarController 标签栏控制器
- Swift高阶函数:Map,Filter,Reduce等-Part 1
- 'String' does not conform to protocol 'CollectionType' Error in Swift 2.0