Home > Mobile >  IOS load network image back to 403
IOS load network image back to 403

Time:09-26

NSURL * url=[NSURL URLWithString: @ "21 & FM=http://img5.imgtn.bdimg.com/it/u=1495393362, 1139752865 & amp; amp; gp=0. JPG"].
_image. Image=[UIImage imageWithData: [NSData dataWithContentsOfURL: url]].
Excuse me I can open in your browser http://img5.imgtn.bdimg.com/it/u=1495393362, 1139752865 & amp; FM=21 & amp; Gp=0. JPG
But when the code above tip 403 why?
With http://doc.ithao123.cn/d/70/1a/37/701a37a1fc1999abfa3193175d5a4a8d.jpg and can be normal,

CodePudding user response:

The building Lord solved? I also encountered this problem

CodePudding user response:

It has to do with network latency, you can request through the network to download the pictures down first before use, recommended the building use SDWebImage, third-party frameworks,

CodePudding user response:

Didn't solve, to sdwebimage

CodePudding user response:

I use the SDWebImage also encountered such a problem? How to solve

CodePudding user response:

Should be the image hotlinking

CodePudding user response:

The problem of image links with HTTPS URL HTTP try
  •  Tags:  
  • iOS
  • Related