ios - How to install SDWebImage -
i need manage photos in app , have read sdwebimage framework seems best way go. finding incredibly difficult install. dont know ruby , have never used podfile, installing downloading latest sdwebimagefolder & framework , adding them project. when try import viewcontroller using suggested imports:
#import <sdwebimage/uiimageview+webcache.h> #import "uiimageview+webcache.h"
i file not found on #import if change "sdwebimage/uiimageview+webcache.h" suggested file not found on the: #import uiimageview+webcache.h though can see when open sdwebimage folder in project! i'm guessing these errors lead not found error when try use sd_setimagewithurl method.
here's screen shot of project:
i hope can framework looks have functionality. appreciated. thanks
when add sdwebimage
folder in project select following option. add copy of folder destination project , create groups.
and have write like
#import "uiimageview+webcache.h"
and make sure adding targets want use library.
documentation @ github :
add sdwebimage project project
- download , unzip last version of framework download page
- right-click on project navigator , select "add files "your project":
- in dialog, select sdwebimage.framework:
- check "copy items destination group's folder (if needed)" checkbox
or can use cocoa pods
other answer suggested.
edit : example :
[self.imageview sd_setimagewithurl:[nsurl urlwithstring:"yoururl.png"] placeholderimage:[uiimage imagenamed:@"placeholder.png"]];
Comments
Post a Comment