怎样导入SDWebImage

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这个库导入到自己项目中。

作者:PowerAuras
出处:http://www.cnblogs.com/powerauras/
转载请注明出处及作者的署名。
原文地址:https://www.cnblogs.com/powerauras/p/3445504.html