open your Podfile, and make sure your Podfile like this : (Tips: this approach suites for the version of 0.38 or greater of cocoa pod)
# Uncomment this line to define a global platform for your project platform :ios, '8.0' # Uncomment this line if you're using Swift use_frameworks! target 'MyProject' do pod 'SDWebImage', '~>3.7' end target 'MyProjectTests' do end
Don't be forgot to update your Podfile each time you update its content.
So, let's take a look at how use SDWebImage to downloading our image:
// let logo = UIImageView() logo.sd_setImageWithURL(NSURL(string: "...some.png"))
That's it. So easy, AH.😀