1

我已经使用可可豆荚下载了 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

在此处输入图像描述

4

0 回答 0