ios - SDWebImage can load the sandbox picture? -
one of programs load webp image sdwebimage
. have feature downloads webp image server , save in sandbox. don't know how use sdwebimage
read webp image in sandbox. display interface.
i tried following:
[self.img1 sd_setimagewithurl: [nsurl fileurlwithpath:[cachesdir stringbyappendingpathcomponent: [nsstring stringwithformat:@"jsoncache"]]]//local picture placeholderimage:img options:sdwebimagelowpriority progress:^(nsinteger receivedsize, nsinteger expectedsize) { } completed:^(uiimage *image, nserror *error, sdimagecachetype cachetype, nsurl *imageurl) { self.img1.image = image; }];
but error...
so should do...?
Comments
Post a Comment