NSURLErrorDomain with code=-1100

后端 未结 2 909
慢半拍i
慢半拍i 2020-12-20 20:05

I was trying to download a picture to my app from

\"enter The request failed with the

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-20 21:01

    The reason you are getting this problem is because you have used

    let url = NSURL(fileURLWithPath: userImageURL);
    

    Instead you should use:

    let url = NSURL(string: userImageUrl)
    

提交回复
热议问题