我使用AFNetworking从openweathermap中检索天气信息。AFHTTPSessionManager() let url = "http://api.openweathermap.org) in print(error.localizedDescription)}在responseObject.description上突出显示'Anyobject‘不是'NS
我在Xcode9,~>4上安装了pod 'Alamofire',‘swift 4.7’,我得到了这个错误-在ServerTrustPolicy.swift文件中使用了无法解析的标识符‘SecTrustEvaluateWithErrorhere THE screenshot of error 请告诉我这个版本的alamofire适用于Xcode 9
下面有json,但无法在Swift 3中解析它。我的代码如下。API中的json有一个数组根。我使用Xcode 8.2.1和Swift 4和Alamofire 4.0。这是我的密码。我试着从结果中得到一个数组r字典,但它总是为零。Alamofire.request(myURL) response in
sel