如何使用Alamofire 4在UICollectionview单元格上进行延迟加载图像?

时间:2016-12-24 09:57:18

标签: ios iphone swift alamofire alamofireimage

我使用可可豆荚下载了Alamofire 4。 Web api工作正常,但是为了使用URL在集合视图单元格上显示图像,我没有获得延迟加载的方法。请帮助我怎么做?

Pod文件格式:

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

platform :ios, '10.0'

target 'XXX' do

  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks

  use_frameworks!

pod 'Alamofire', '~> 4.0'

  # Pods for XXX

  target 'XXX' do

    inherit! :search_paths

    # Pods for testing

  end

  target 'XXX' do

    inherit! :search_paths

    # Pods for testing
  end

end

enter image description here

0 个答案:

没有答案