Contextual closure type 'Response -> Void' expects 1 argument, but 3 were used in closure body

在之前的项目中,用到网络请求 - Alamofire,但是出现了一个错误,废话不多说,直接上图
错误提示:

Snip20161001_7.png

解决方法:

  Alamofire.request(.GET, "http://news-at.zhihu.com/api/4/start-image/1080*1776").responseJSON { (responseData) -> Void in
            guard responseData.result.error == nil else {
                print("获取数据失败")
                return
          }
      }

你可能感兴趣的:(Contextual closure type 'Response -> Void' expects 1 argument, but 3 were used in closure body)