函數(shù)的manager.GET報錯
函數(shù)的manager.GET報錯 manager.GET 報錯,Cannot invoke 'GET' with an argument list of type '(String, parameters: NSDictionary, success: (AFHTTPRequestOperation!, AnyObject!) -> _, failure: (AFHTTPRequestOperation!, NSError!) -> _)' ? 具體應(yīng)該怎么改?謝謝!
2018-11-12
上面的代碼運行結(jié)果如下:
2018-11-12
2016-02-09
在failure: { (operation: AFHTTPRequestOperation!,
? ? ? ? ? ? ? ? error: NSError!) in
? ? ? ? ? ? ? ? println("Error: " + error.localizedDescription) ? ? ? ? ?
? ? ? ? })這里?
改為
failure: { (operation: AFHTTPRequestOperation?,
? ? ? ? ? ? ? ? error: NSError) in
? ? ? ? ? ? ? ? println("Error: " + error.localizedDescription) ? ? ? ? ?
? ? ? ? })
2015-12-31
請問解決了嗎
2015-12-04
我也遇到這個問題了
2015-12-02
manager.GET(url,
? ? ? ? ? ? parameters: params,
? ? ? ? ? ? success: { (operation: AFHTTPRequestOperation!,
? ? ? ? ? ? ? ? responseObject: AnyObject!) in
? ? ? ? ? ? ? ? println("JSON: " + responseObject.description!)
?? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ?
? ? ? ? ? ? },
? ? ? ? ? ? failure: { (operation: AFHTTPRequestOperation!,
? ? ? ? ? ? ? ? error: NSError!) in
? ? ? ? ? ? ? ? println("Error: " + error.localizedDescription) ? ? ? ? ?
? ? ? ? })
出問題的就是這段代碼,謝謝