How to install SDWebImage

前端 未结 4 411
没有蜡笔的小新
没有蜡笔的小新 2020-12-20 21:40

I need to manage photos in my app and have read much about SDWebImage framework which seems to be the best way to go. However I am finding it incredibly difficult to instal

4条回答
  •  情话喂你
    2020-12-20 22:04

    • I think you have to use a Cocoa Pod file for SDWebImage Library.
    • init the pod file.
    • install Pod file.
    • and then update that pod file.

    platform :ios, '7.0'

    source 'https://github.com/CocoaPods/Specs.git'

    pod 'SDWebImage','3.7.1'

    pod 'UIActivityIndicator-for-SDWebImage'

    And then you can import the following file.

    #import "UIImageView+UIActivityIndicatorForSDWebImage.h"
    

提交回复
热议问题