In Swift, how do you get the error type from UrlSession

前端 未结 0 1989
天命终不由人
天命终不由人 2021-02-13 12:49

I have the following code in my network logic:

let task = urlSession.dataTask(with: request) { [weak self] (data, response, error) in
  
  if let error = error {          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题