Before always do not know how to load the picture when the display chrysanthemum, all with placeholder to replace, the original Sdwebimage bring this function:
As long as the picture is loaded in the location of the line: __block uiactivityindicatorview *activityindicator; [Cell.imgview sd_setimagewithurl:url placeholderimage:nil options:sdwebimageprogressivedownload progress:^ ( Nsinteger receivedsize, Nsinteger expectedsize) { if (!activityindicator) { [cell.imgview addsubview: Activityindicator = [Uiactivityindicatorview.alloc initwithactivityindicatorstyle: Uiactivityindicatorviewstylegray]]; Activityindicator.center = Cell.imgView.center; [Activityindicator startanimating]; } } completed:^ (UIImage *image, Nserror *error, Sdimagecachetype cachetype, Nsurl *imageurl) { [activityindicator Removefromsuperview]; Activityindicator = nil; }];/ /Here is a piece of imageview attached to the cell.
The effect is like this, because each of my cells is made up of a imageview and a label, but I put the chrysanthemums in the middle. The coordinates don't look like they might be biased.
iOS sdwebimage picture loading show chrysanthemums