I want to use the "SDWebImage" library in my iOS application in which I am using an UICollectionView to display a number of images.
Do I need to add all the files from SDWebImage library to my project? I learnt that I just need to import the UIImageview+webcache category in my view controller to start the image download. Please give your inputs.
The best practice would be to install it through Cocoapods: https://github.com/rs/SDWebImage#installation-with-cocoapods
That way, you won't have to worry about dependencies and you will just need to use
#import <SDWebImage/UIImageView+WebCache.h>
anywhere you need it
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.