2
最近我已将我的xcode更新至版本8.0和Alamofire 4.0。在那之后我得到Use of undeclared type 'Response'
此代码:使用未声明的类型“响应”错误
func getDate(completion: (Response<AnyObject,NSError>) -> Void){
Alamofire.request(.GET, "http://www.example.ir/api/utiliti/example" ,parameters:nil)
.responseJSON{ response in
completion(response)
}
}
后解决了这个不回答题。当你在github上发布问题时神奇地解决了问题? –
你说得对。文章编辑@OğuzSezer –
你改变了什么回应? –