Two ways :

方法1:copy all the files into your project.

  --下载https://github.com/rs/SDWebImage

  --把SD项目copy到本地项目中,删除SD项目中的Examples。

  --导入ImageIO.framework、MapKit.framework。

  --如果本地项目未使用arc,则Compiler Flags中-fobjc-arc。

 

方法2:import the project as a static library.

  --下载https://github.com/rs/SDWebImage/releases中的SDWebImage.framework,copy到本地项目中。

  --导入ImageIO.framework。

  --Open the "Build Settings" tab, in the "Linking" section, locate the "Other Linker Flags" setting and add the "-ObjC" flag。

 

  

注:以上两种方法选其一即可,第一种是把整个SDWebImage项目导入到自己项目中,第二种是把SDWebImage.framework这个库导入到自己项目中。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-08-10
  • 2022-01-23
  • 2021-12-06
  • 2021-07-02
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2021-07-09
  • 2021-12-06
  • 2021-06-14
  • 2021-08-14
  • 2021-08-15
相关资源
相似解决方案