0
難以在Alamofire 4.0
中提出請求。以前我會用:使用自定義響應在Alamofire 4.0中提出請求
代碼段:
alamoManager.request(.GET, url, parameters: parameters, encoding: .url, headers: nil).responseObject { (response: Response<MyCustomResponse, NSError>) in
}
哪裏alamoManager
是老Manager
對象(現更名爲SessionManager
)。但是,我無法看到文檔中有關如何傳遞自定義響應(符合可映射)的任何內容。有人做到了嗎?任何指針將非常感激!