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

posted on 2013-11-27 13:57  PowerAuras  阅读(1300)  评论(0编辑  收藏  举报