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

var condition = (jsonResult["weather"]? as NSArray)[0]?["id"]? as Int

http://img1.sycdn.imooc.com//54f443620001be2717720284.jpg

总是报错 Operand of postfix "?"

正在回答

1 回答

as!

0 回复 有任何疑惑可以回复我~

举报

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

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

进入课程

var condition = (jsonResult["weather"]? as NSArray)[0]?["id"]? as Int

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信