sdwebimage: UIImageView+WebCache.h: No such file or directory

后端 未结 7 1963
灰色年华
灰色年华 2020-12-16 08:32

I am fairly new to ios development - trying to use sdwebimage in my iphone project. I believe I completed all basic setups as required. But when I build, I get this error: N

7条回答
  •  情深已故
    2020-12-16 09:03

    I also use SDWebImage.
    In my experience I didn't do anything with the linker flags etc.
    You only have to add the classes in your project and simply import the "UIImageView+WebCache.h" in your class' header like this:

    #import "UIImageView+WebCache.h"
    

    and if you want to use it on an UIImageView object, just use the method

    setImageWithURL:placeholderImage:
    

    you can refer to their github for more info

提交回复
热议问题