Call can throw but it is not marked with try
来源:互联网 发布:浦东国税局 知乎 编辑:程序博客网 时间:2024/05/19 03:18
错误原因:
let dic = NSJSONSerialization.JSONObjectWithData(datas!, options: .MutableContainers)
正确写法:
do {
let jsonData = try NSJSONSerialization.JSONObjectWithData(datas!, options: .MutableContainers)
print(jsonData)
} catch {
}
0 0
- Call can throw but it is not marked with try
- Call can throw, but it is not marked with 'try' and the error is not handled
- Swift:Call can throw, but it is not marked with 'try' and the error is not handled
- Swift Call can throw, but it is not marked with 'try' and the error is not handled
- swift编码出现Call can throw, but it is not marked with***错误的解决
- swift编码出现Call can throw, but it is not marked with 'try' and the error is not handled错误的解决
- Excel has detected that '...xls' is a SYLK file, but can not load it
- Unity 解决 An asset is marked with HideFlags.DontSave but is included in the build 问题。
- An asset is marked with HideFlags.DontSave but is included in the build:
- An asset is marked with HideFlags.DontSave but is included in the build
- An asset is marked with HideFlags.DontSave but is included in the build 解决方法
- A file with the correct name was found in this directory, but it is not the correct one.
- 打包的时候报错 An asset is marked with HideFlags.DontSave but is included in the build的解决办法
- unity 项目build 的时候后报错An asset is marked with HideFlags.DontSave but is included in the build:
- unity 项目build 的时候后报错An asset is marked with HideFlags.DontSave but is included in the build:
- Linux下kdesvn提交更改时提示Entry for 'xxx' is marked as 'copied' but is not itself sched
- "cabal: ar is required but it could not be found"
- Depends: libmpg123-0:i386 but it is not installable Recomm
- java引用传递和值传递的详细探讨
- [Epub]-数字出版物制作-网页版-[2]
- 2016年腾讯校园招聘试题解析
- [javase学习笔记]-2.5 进制扫盲
- Valid Parentheses
- Call can throw but it is not marked with try
- ListView不同布局的item的复用方法详解
- 程序日志
- listview不能刷新显示数据(有数据的情形下)
- ubuntu 数据库无法正常启动
- Swift学习笔记 -- 函数和闭包
- 自己用过的linux命令
- 图片加载显示loading图的疑惑解决
- oracle sqldr命令使用 sqldr导入中文乱码问题