为了账号安全,请及时绑定邮箱和手机立即绑定

if let tempResult = jsonResult["main"]?["temp"]? as? Double
总是出错:Type "string"  does not conform to protocol "NSCopying"
网上有童鞋改成if let tempResult = (jsonResult["main"] as NSDictionary)["temp"] as? Double,确实不报错,但不是很明白原因

正在回答

1 回答

举报

0/150
提交
取消
Swift Weather APP
  • 参与学习       35564    人
  • 解答问题       241    个

本课程将带领大家使用Swift语言开发一个完整的天气 iOS APP

进入课程
意见反馈 帮助中心 APP下载
官方微信